Graphic Calculator: FIDocalcus
Проект трёх первокурсников (по инженерному практикуму в первом семестре) по созданию графического калькулятора на FLTK C++
Loading...
Searching...
No Matches
Graph_lib::Point Struct Reference

#include <Point.h>

Public Member Functions

 Point ()
 
constexpr Point (pix_amount _x, pix_amount _y)
 
Pointoperator+= (Point d)
 
Pointoperator-= (Point d)
 

Public Attributes

pix_amount x
 
pix_amount y
 

Constructor & Destructor Documentation

◆ Point() [1/2]

Graph_lib::Point::Point ( )
inline
8: x{0}, y{0} {}
pix_amount y
Definition Point.h:30
pix_amount x
Definition Point.h:30

◆ Point() [2/2]

constexpr Graph_lib::Point::Point ( pix_amount _x,
pix_amount _y )
inlineconstexpr
10: x{_x}, y{_y} {}

Member Function Documentation

◆ operator+=()

Point & Graph_lib::Point::operator+= ( Point d)
inline
14 {
15 x += d.x;
16 y += d.y;
17 return *this;
18 }

◆ operator-=()

Point & Graph_lib::Point::operator-= ( Point d)
inline
20 {
21 x -= d.x;
22 y -= d.y;
23 return *this;
24 }

Member Data Documentation

◆ x

pix_amount Graph_lib::Point::x

◆ y

pix_amount Graph_lib::Point::y

The documentation for this struct was generated from the following file: