Abstract base class providing an interface for file-like storage with binary and text read/write oper...
[AI] Represents a 3D vertex with floating point coordinates.
void SetCoordinate(LegoU32 p_i, LegoFloat p_coordinate)
[AI] Sets the value of one of the xyz coordinates by index (0=x, 1=y, 2=z).
LegoFloat GetCoordinate(LegoU32 p_i)
[AI] Gets the value of one of the xyz coordinates by index (0=x, 1=y, 2=z).
LegoFloat operator[](int i) const
[AI] Provides direct access to a coordinate by index (read-only).
LegoFloat m_coordinates[3]
[AI] The x, y, and z coordinates of the vertex. [AI]
void SetY(LegoFloat p_y)
[AI] Sets the Y coordinate.
LegoFloat & operator[](int i)
[AI] Provides direct access to a coordinate by index (read/write).
LegoVertex()
[AI] Constructs a LegoVertex at the origin (0, 0, 0).
void SetZ(LegoFloat p_z)
[AI] Sets the Z coordinate.
void SetX(LegoFloat p_x)
[AI] Sets the X coordinate.
LegoFloat GetZ()
[AI] Gets the Z coordinate.
LegoResult Read(LegoStorage *p_storage)
[AI] Reads the coordinates from a storage object (usually a file/buffer).
LegoBool IsOrigin()
[AI] Checks whether the vertex is located at the origin (0,0,0).
LegoFloat GetX()
[AI] Gets the X coordinate.
LegoFloat GetY()
[AI] Gets the Y coordinate.
[AI] Defines basic fixed-width data types and platform-neutral constants for LEGO Island codebase.
unsigned long LegoU32
[AI] Unsigned 32-bit integer type for cross-platform compatibility.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
float LegoFloat
[AI] Floating point type used throughout LEGO Island.
LegoU8 LegoBool
[AI] Boolean value used throughout the codebase.