Isle
Loading...
Searching...
No Matches
MxPoint16 Class Reference

[AI] 2D point with 16-bit signed integer coordinates. More...

#include <mxgeometry.h>

Inheritance diagram for MxPoint16:
Collaboration diagram for MxPoint16:

Public Member Functions

 MxPoint16 ()
 [AI] Default constructor. More...
 
 MxPoint16 (const MxPoint16 &p_p)
 [AI] Copy constructor. More...
 
 MxPoint16 (MxS16 p_x, MxS16 p_y)
 [AI] Constructor with explicit coordinates. More...
 
- Public Member Functions inherited from MxPoint< MxS16 >
 MxPoint ()
 [AI] Default constructor, does not initialize coordinates. More...
 
 MxPoint (const MxPoint &p_p)
 [AI] Copy constructor. More...
 
 MxPoint (MxS16 p_x, MxS16 p_y)
 [AI] Constructor with explicit coordinates. More...
 
MxS16 GetX () const
 [AI] Get X coordinate. More...
 
MxS16 GetY () const
 [AI] Get Y coordinate. More...
 
void SetX (MxS16 p_x)
 [AI] Set X coordinate. More...
 
void SetY (MxS16 p_y)
 [AI] Set Y coordinate. More...
 
void operator+= (const MxPoint &p_p)
 [AI] Add another point's coordinates to this point. More...
 
void operator-= (const MxPoint &p_p)
 [AI] Subtract another point's coordinates from this point. More...
 
MxPoint operator+ (const MxPoint &p_p) const
 [AI] Add another point, returning the result. More...
 
MxPoint operator- (const MxPoint &p_p) const
 [AI] Subtract another point, returning the result. More...
 

Additional Inherited Members

- Protected Attributes inherited from MxPoint< MxS16 >
MxS16 m_x
 [AI] X coordinate. More...
 
MxS16 m_y
 [AI] Y coordinate. More...
 

Detailed Description

[AI] 2D point with 16-bit signed integer coordinates.

[AI] Used for pixel or grid coordinates with 16-bit precision.

Definition at line 434 of file mxgeometry.h.

Constructor & Destructor Documentation

◆ MxPoint16() [1/3]

MxPoint16::MxPoint16 ( )
inline

[AI] Default constructor.

Definition at line 439 of file mxgeometry.h.

◆ MxPoint16() [2/3]

MxPoint16::MxPoint16 ( const MxPoint16 p_p)
inline

[AI] Copy constructor.

Parameters
p_p[AI] Point to copy.

Definition at line 445 of file mxgeometry.h.

◆ MxPoint16() [3/3]

MxPoint16::MxPoint16 ( MxS16  p_x,
MxS16  p_y 
)
inline

[AI] Constructor with explicit coordinates.

Parameters
p_x[AI] X coordinate.
p_y[AI] Y coordinate.

Definition at line 452 of file mxgeometry.h.


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