Integer 2D coordinate. More...
Public Member Functions | |
int32_t | GetX (void) const noexcept |
Retrieve the X coordinate. | |
int32_t | GetY (void) const noexcept |
Retrieve the Y coordinate. | |
int32_t * | GetXPtr (void) noexcept |
Retrieve the pointer to the X coordinate. | |
int32_t * | GetYPtr (void) noexcept |
Retrieve the pointer to the Y coordinate. | |
void | SetX (int32_t iX) noexcept |
Set the X coordinate. | |
void | SetY (int32_t iY) noexcept |
Set the Y coordinate. | |
void | Set (int32_t iX, int32_t iY) noexcept |
Set the X and Y coordinates. | |
void | Clear (void) noexcept |
Set the X and Y coordinates to zero. | |
eError | Read (FILE *fp) noexcept |
Read a point from a file. | |
eError | Write (FILE *fp) const noexcept |
Write a point to a file. | |
eError | Read (Burger::File *fp) noexcept |
Read a point from a file. | |
eError | Write (Burger::File *fp) const noexcept |
Write a point to a file. | |
void | Get (Point *pOutput) const noexcept |
Convert a Point2D_t into a MacOS Point structure. | |
void | Set (const Point *pInput) noexcept |
Convert a MacOS Point structure into a Point2D_t. | |
void | Get (CGPoint *pOutput) const noexcept |
Convert a Point2D_t into a MacOSX/iOS CGPoint structure. | |
void | Set (const CGPoint *pInput) noexcept |
Convert a MacOSX/iOS CGPoint structure into a Point2D_t. | |
void | Get (_NSPoint *pOutput) const noexcept |
Convert a Point2D_t into a MacOSX _NSPoint structure. | |
void | Set (const _NSPoint *pInput) noexcept |
Convert a MacOSX _NSPoint structure into a Point2D_t. | |
void | Get (tagPOINT *pOutput) const noexcept |
Convert a Point2D_t into a Microsoft POINT structure. | |
void | Set (const tagPOINT *pInput) noexcept |
Convert a Microsoft POINT structure into a Point2D_t. | |
Public Attributes | |
int32_t | m_iX |
X coordinate of the point. | |
int32_t | m_iY |
Y coordinate of the point. | |
Integer 2D coordinate.
Simple container structure that holds an X and a Y coordinate with integer precision.
|
inlinenoexcept |
Set the X and Y coordinates to zero.
This inline function sets the X and Y coordinates for the point to zero, effectively initializing the structure
|
noexcept |
Convert a Point2D_t into a MacOSX _NSPoint structure.
Converts the contents of a Point2D_t into a MacOSX _NSPoint structure. Since it's converting an int into a float, data loss could occur.
pOutput | Pointer to an uninitialized MacOSX _NSPoint structure. |
|
noexcept |
Convert a Point2D_t into a MacOSX/iOS CGPoint structure.
Converts the contents of a Point2D_t into a MacOSX/iOS CGPoint structure. Since it's converting an int into a float, data loss could occur.
pOutput | Pointer to an uninitialized MacOSX/iOS CGPoint structure. |
|
noexcept |
Convert a Point2D_t into a MacOS Point structure.
Converts the contents of a Point2D_t into a MacOS/Quicktime for Windows Point structure. Since it's converting an int into a short, data loss could occur if the values exceed 32767 or are less than -32768.
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Read a point from a file.
Read two sixteen bit integers in Little Endian format from an open binary file and store the values as the new X and Y coordinates.
fp | Pointer to an open for reading Burger::File reference |
|
noexcept |
Read a point from a file.
Read two sixteen bit integers in Little Endian format from an open binary file and store the values as the new X and Y coordinates.
fp | Pointer to an open for reading FILE reference |
|
noexcept |
Convert a MacOSX _NSPoint structure into a Point2D_t.
Converts the contents of a MacOSX _NSPoint structure into a Point2D_t. Since it's converting a float to an int, data loss could occur.
pInput | Pointer to a valid MacOSX _NSPoint structure. |
|
noexcept |
Convert a MacOSX/iOS CGPoint structure into a Point2D_t.
Converts the contents of a MacOSX/iOS CGPoint structure into a Point2D_t. Since it's converting a float to an int, data loss could occur.
pInput | Pointer to a valid MacOSX/iOS CGPoint structure. |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Write a point to a file.
Write the X and Y coordinates to a FILE stream as two sixteen bit little endian integers.
fp | Pointer to an open for writing Burger::File reference |
|
noexcept |
Write a point to a file.
Write the X and Y coordinates to a FILE stream as two sixteen bit little endian integers.
fp | Pointer to an open for writing FILE reference |
int32_t Burger::Point2D_t::m_iX |
X coordinate of the point.
int32_t Burger::Point2D_t::m_iY |
Y coordinate of the point.