[AI] Represents a sphere in 3D space, used for bounding volume calculations and spatial queries.
LegoSphere()
[AI] Default constructor initializing the sphere with zero radius.
LegoFloat m_radius
Radius of the sphere. [AI].
LegoFloat GetRadius()
[AI] Retrieves the current radius of the sphere.
void SetCenter(LegoVertex &p_center)
[AI] Sets the center of the sphere to the specified vertex.
LegoVertex & GetCenter()
[AI] Returns a reference to the center vertex of the sphere.
void SetRadius(LegoFloat p_radius)
[AI] Sets the radius to the specified value.
LegoResult Read(LegoStorage *p_storage)
[AI] Reads the center and radius of the sphere from a binary storage source.
LegoVertex m_center
Center position of the sphere in 3D space. [AI].
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.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
float LegoFloat
[AI] Floating point type used throughout LEGO Island.