Isle
|
[AI] Represents an axis-aligned 3D bounding box, defined by minimum and maximum corners. More...
#include <legobox.h>
Public Member Functions | |
LegoVertex & | GetMin () |
[AI] Returns a reference to the minimum vertex of the box. More... | |
void | SetMin (LegoVertex &p_min) |
[AI] Sets the minimum vertex of the box. More... | |
LegoVertex & | GetMax () |
[AI] Returns a reference to the maximum vertex of the box. More... | |
void | SetMax (LegoVertex &p_max) |
[AI] Sets the maximum vertex of the box. More... | |
LegoFloat | GetDX () |
[AI] Calculates the length of the box along the X axis. More... | |
LegoFloat | GetDY () |
[AI] Calculates the length of the box along the Y axis. More... | |
LegoFloat | GetDZ () |
[AI] Calculates the length of the box along the Z axis. More... | |
LegoBool | IsEmpty () |
[AI] Checks if both min and max vertices are set to the origin. More... | |
LegoResult | Read (LegoStorage *p_storage) |
[AI] Reads the bounding box data from a LegoStorage stream. More... | |
Protected Attributes | |
LegoVertex | m_min |
[AI] Minimum corner of the bounding box. More... | |
LegoVertex | m_max |
[AI] Maximum corner of the bounding box. More... | |
[AI] Represents an axis-aligned 3D bounding box, defined by minimum and maximum corners.
[AI]
[AI] The LegoBox class encapsulates an axis-aligned bounding box (AABB) in 3D space. It stores the minimum and maximum vertices, and provides operations for retrieving dimensions, checking for emptiness, and reading its data from storage. [AI]
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
LegoResult LegoBox::Read | ( | LegoStorage * | p_storage | ) |
[AI] Reads the bounding box data from a LegoStorage stream.
[AI]
p_storage | Pointer to the LegoStorage instance to read from. [AI] |
[AI] Calls the Read methods of the min and max vertices in sequence. [AI]
Definition at line 10 of file legobox.cpp.
|
inline |
[AI] Sets the maximum vertex of the box.
[AI]
p_max | The LegoVertex to use as the maximum (corner) of the box. [AI] |
|
inline |
[AI] Sets the minimum vertex of the box.
[AI]
p_min | The LegoVertex to use as the minimum (corner) of the box. [AI] |
|
protected |
|
protected |