Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector
Description
Create an orthonormal basis from a basis with at least two orthogonal vectors. It may change the directions of the X and Y axes to make the basis orthogonal, but it won'T change the direction of the Z axis. All axes will be normalized.
| Name | CreateOrthonormalBasis |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
static void CreateOrthonormalBasis
(
TVector < T > & XAxis,
TVector < T > & YAxis,
TVector < T > & ZAxis
)
Parameters
| Name | Remarks |
|---|---|
| XAxis | The input basis' XAxis, and upon return the orthonormal basis' XAxis. |
| YAxis | The input basis' YAxis, and upon return the orthonormal basis' YAxis. |
| ZAxis | The input basis' ZAxis, and upon return the orthonormal basis' ZAxis. |