2D point type and operations. More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | NXPoint |
A structure representing a point in 2D space. More... | |
Typedefs | |
typedef struct NXPoint | NXPoint |
A structure representing a point in 2D space. | |
Functions | |
static bool | NXEqualsPoint (NXPoint a, NXPoint b) |
Compare two points for equality. More... | |
static NXPoint | NXMakePoint (int32_t x, int32_t y) |
Create an NXPoint from integer coordinates. More... | |
2D point type and operations.
This header defines NXPoint, a structure representing a point in 2D space. It provides operations for creating, manipulating, and comparing points.
Definition in file NXPoint.h.
|
inlinestatic |
Create an NXPoint from integer coordinates.
Convenience constructor for creating an NXPoint
value. Implemented as a header-only static inline
function so it can be used without an external symbol.
x | The X coordinate. |
y | The Y coordinate. |
NXPoint
with the given coordinates. Definition at line 47 of file NXPoint.h.