Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FOrientedBox Struct Reference

#include <OrientedBox.h>

+ Collaboration diagram for FOrientedBox:

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
 

Detailed Description

Structure for arbitrarily oriented boxes (not necessarily axis-aligned).

Definition at line 12 of file OrientedBox.h.

Constructor & Destructor Documentation

◆ FOrientedBox()

FOrientedBox::FOrientedBox ( )
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.

Member Function Documentation

◆ CalcVertices()

FORCEINLINE void FOrientedBox::CalcVertices ( FVector * Verts) const

Fills in the Verts array with the eight vertices of the box.

Parameters
VertsThe array to fill in with the vertices.

Definition at line 73 of file OrientedBox.h.

◆ Project()

FORCEINLINE FFloatInterval FOrientedBox::Project ( const FVector & Axis) const

Finds the projection interval of the box when projected onto Axis.

Parameters
AxisThe unit vector defining the axis to project the box onto.

Definition at line 90 of file OrientedBox.h.

Member Data Documentation

◆ AxisX

FVector FOrientedBox::AxisX

Holds the x-axis vector of the box. Must be a unit vector.

Definition at line 18 of file OrientedBox.h.

◆ AxisY

FVector FOrientedBox::AxisY

Holds the y-axis vector of the box. Must be a unit vector.

Definition at line 21 of file OrientedBox.h.

◆ AxisZ

FVector FOrientedBox::AxisZ

Holds the z-axis vector of the box. Must be a unit vector.

Definition at line 24 of file OrientedBox.h.

◆ Center

FVector FOrientedBox::Center

Holds the center of the box.

Definition at line 15 of file OrientedBox.h.

◆ ExtentX

FVector::FReal FOrientedBox::ExtentX

Holds the extent of the box along its x-axis.

Definition at line 27 of file OrientedBox.h.

◆ ExtentY

FVector::FReal FOrientedBox::ExtentY

Holds the extent of the box along its y-axis.

Definition at line 30 of file OrientedBox.h.

◆ ExtentZ

FVector::FReal FOrientedBox::ExtentZ

Holds the extent of the box along its z-axis.

Definition at line 33 of file OrientedBox.h.


The documentation for this struct was generated from the following file: