Structure for arbitrarily oriented boxes (not necessarily axis-aligned). 更多...
#include <OrientedBox.h>
Public 成员函数 | |
| FORCEINLINE void | CalcVertices (FVector *Verts) const |
| Fills in the Verts array with the eight vertices of the box. 更多... | |
| FOrientedBox () | |
| Default constructor. 更多... | |
| FORCEINLINE FFloatInterval | Project (const FVector &Axis) const |
| Finds the projection interval of the box when projected onto Axis. 更多... | |
Public 属性 | |
| FVector | AxisX |
| Holds the x-axis vector of the box. 更多... | |
| FVector | AxisY |
| Holds the y-axis vector of the box. 更多... | |
| FVector | AxisZ |
| Holds the z-axis vector of the box. 更多... | |
| FVector | Center |
| Holds the center of the box. | |
| float | ExtentX |
| Holds the extent of the box along its x-axis. | |
| float | ExtentY |
| Holds the extent of the box along its y-axis. | |
| float | ExtentZ |
| Holds the extent of the box along its z-axis. | |
Structure for arbitrarily oriented boxes (not necessarily axis-aligned).
|
inline |
Default constructor.
Constructs a unit-sized, origin-centered box with axes aligned to the coordinate system.
| 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. |
| 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. |
| FVector FOrientedBox::AxisX |
Holds the x-axis vector of the box.
Must be a unit vector.
| FVector FOrientedBox::AxisY |
Holds the y-axis vector of the box.
Must be a unit vector.
| FVector FOrientedBox::AxisZ |
Holds the z-axis vector of the box.
Must be a unit vector.