Pepper_42_C++_interfaces
|
A 2 dimensional point with 0,0 being the upper-left starting coordinate. More...
#include <point.h>
Public Member Functions | |
Point () | |
The default constructor for a point at 0,0. More... | |
Point (int32_t in_x, int32_t in_y) | |
Point (const PP_Point &point) | |
~Point () | |
Destructor. More... | |
operator PP_Point () const | |
const PP_Point & | pp_point () const |
PP_Point & | pp_point () |
int32_t | x () const |
void | set_x (int32_t in_x) |
int32_t | y () const |
void | set_y (int32_t in_y) |
Point | operator+ (const Point &other) const |
Point | operator- (const Point &other) const |
Point & | operator+= (const Point &other) |
Point & | operator-= (const Point &other) |
void | swap (Point &other) |
A 2 dimensional point with 0,0 being the upper-left starting coordinate.
|
inline |
The default constructor for a point at 0,0.
Definition at line 19 of file point.h.
Referenced by operator+(), and operator-().
|
inline |
A constructor accepting two int32_t values for x and y and converting them to a Point.
[in] | in_x | An int32_t value representing a horizontal coordinate of a point, starting with 0 as the left-most coordinate. |
[in] | in_y | An int32_t value representing a vertical coordinate of a point, starting with 0 as the top-most coordinate. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Getter function for returning the value of x.
Definition at line 72 of file point.h.
Referenced by pp::Rect::Contains(), pp::Rect::Offset(), operator+(), operator+=(), operator-(), operator-=(), operator==(), and swap().
|
inline |
Getter function for returning the value of y.
Definition at line 84 of file point.h.
Referenced by pp::Rect::Contains(), pp::Rect::Offset(), operator+(), operator+=(), operator-(), operator-=(), operator==(), and swap().