Class: Point
The Point class represents a 2D point with x and y coordinates. It provides various utility functions for mathematical operations and transformations, including rotations.
The source file for this class is located in os/framework/Point.h
Members
x
- Type:
int16_t - Description: The x-coordinate of the point.
y
- Type:
int16_t - Description: The y-coordinate of the point.
Constructors
Default Constructor
Point();
Initializes the point with both x and y set to INT16_MIN, indicating an invalid point.
From X and Y Coordinates
Point(int16_t x, int16_t y);
Initializes the point with the specified x and y coordinates.
Parameters:
x(int16_t): The x-coordinate.y(int16_t): The y-coordinate.
From uint32_t
Point(uint32_t rawByte);
Constructs a point from a 32-bit integer, where the higher 16 bits represent the x coordinate and the lower 16 bits represent the y coordinate.
Parameters:
rawByte(uint32_t): A packed representation of the point.