Ark Server API (ASA) - Wiki
|
#include <OrientedBox.h>
Public Member Functions | |
FOrientedBox () | |
FORCEINLINE void | CalcVertices (FVector *Verts) const |
FORCEINLINE FFloatInterval | Project (const FVector &Axis) const |
Public Attributes | |
FVector | Center |
FVector | AxisX |
FVector | AxisY |
FVector | AxisZ |
FVector::FReal | ExtentX |
FVector::FReal | ExtentY |
FVector::FReal | ExtentZ |
Structure for arbitrarily oriented boxes (not necessarily axis-aligned).
Definition at line 12 of file OrientedBox.h.
|
inline |
Default constructor.
Constructs a unit-sized, origin-centered box with axes aligned to the coordinate system.
Definition at line 42 of file OrientedBox.h.
FORCEINLINE void FOrientedBox::CalcVertices | ( | FVector * | Verts | ) | const |
Fills in the Verts array with the eight vertices of the box.
Verts | The array to fill in with the vertices. |
Definition at line 73 of file OrientedBox.h.
FORCEINLINE FFloatInterval FOrientedBox::Project | ( | const FVector & | Axis | ) | const |
Finds the projection interval of the box when projected onto Axis.
Axis | The unit vector defining the axis to project the box onto. |
Definition at line 90 of file OrientedBox.h.
FVector FOrientedBox::AxisX |
Holds the x-axis vector of the box. Must be a unit vector.
Definition at line 18 of file OrientedBox.h.
FVector FOrientedBox::AxisY |
Holds the y-axis vector of the box. Must be a unit vector.
Definition at line 21 of file OrientedBox.h.
FVector FOrientedBox::AxisZ |
Holds the z-axis vector of the box. Must be a unit vector.
Definition at line 24 of file OrientedBox.h.
FVector FOrientedBox::Center |
Holds the center of the box.
Definition at line 15 of file OrientedBox.h.
FVector::FReal FOrientedBox::ExtentX |
Holds the extent of the box along its x-axis.
Definition at line 27 of file OrientedBox.h.
FVector::FReal FOrientedBox::ExtentY |
Holds the extent of the box along its y-axis.
Definition at line 30 of file OrientedBox.h.
FVector::FReal FOrientedBox::ExtentZ |
Holds the extent of the box along its z-axis.
Definition at line 33 of file OrientedBox.h.