Navigation
API > API/Runtime > API/Runtime/GeometryCore
| Name | TQuaternion |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Quaternion.h |
| Include Path | #include "Quaternion.h" |
Syntax
template<typename RealType>
struct TQuaternion
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TQuaternion
(
const TVector< RealType >& Axis, |
Quaternion.h | ||
TQuaternion
(
const TVector< RealType >& From, |
Quaternion.h | ||
TQuaternion
(
const FRotator& Rotator |
Quaternion.h | ||
TQuaternion
(
const FQuat4d& Quat |
Quaternion.h | ||
TQuaternion
(
const FQuat4f& Quat |
Quaternion.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGS TQuaternion
(
const TQuaternion& Copy |
Quaternion.h | ||
TQuaternion
(
const TQuaternion< RealType2 >& Copy |
Quaternion.h | ||
TQuaternion
(
const RealType* Values |
Quaternion.h | ||
TQuaternion () |
Quaternion.h | ||
TQuaternion
(
const TQuaternion< RealType >& From, |
Quaternion.h | ||
TQuaternion
(
const TMatrix3< RealType >& RotationMatrix |
Quaternion.h | ||
TQuaternion
(
RealType X, |
Quaternion.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TQuaternion | union UE::Geometry::TQuaternion | Quaternion.h | ||
| W | RealType | Quaternion.h | ||
| X | RealType | Note: in Wm5 version, this is a 4-element arraY stored in order (w,x,y,z). | Quaternion.h | |
| XYZW | RealType | Quaternion.h | ||
| Y | RealType | Quaternion.h | ||
| Z | RealType | Quaternion.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector< RealType > AxisX() |
Quaternion.h | ||
TVector< RealType > AxisY() |
Quaternion.h | ||
TVector< RealType > AxisZ() |
Quaternion.h | ||
RealType Dot
(
const TQuaternion< RealType >& Other |
Quaternion.h | ||
bool EpsilonEqual
(
const TQuaternion< RealType >& Other, |
Test whether quaternions represent the same rotation w/in a tolerance. (Note: Considers the negative representation of the same rotation as equal.) | Quaternion.h | |
| Quaternion.h | |||
TQuaternion< RealType > Inverse() |
Quaternion.h | ||
| Quaternion.h | |||
bool IsIdentity
(
RealType Tolerance |
Test whether the quaternion is EpsilonEqual to the identity quaternion (i.e., W=1 or W=-1, within tolerance) | Quaternion.h | |
RealType Length() |
Quaternion.h | ||
RealType Normalize
(
const RealType epsilon |
Quaternion.h | ||
TQuaternion< RealType > Normalized
(
const RealType epsilon |
Quaternion.h | ||
void SetAxisAngleD
(
const TVector< RealType >& Axis, |
Quaternion.h | ||
void SetAxisAngleR
(
const TVector< RealType >& Axis, |
Quaternion.h | ||
void SetFromRotationMatrix
(
const TMatrix3< RealType >& RotationMatrix |
Quaternion.h | ||
| This function can take non-normalized vectors vFrom and vTo (normalizes internally) | Quaternion.h | ||
void SetToSlerp
(
TQuaternion< RealType > From, |
Quaternion.h | ||
RealType SquaredLength() |
Quaternion.h | ||
TMatrix3< RealType > ToRotationMatrix() |
Quaternion.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TQuaternion< RealType > Identity() |
Quaternion.h | ||
static TQuaternion< RealType > Zero() |
Quaternion.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TQuaternion< RealType > operator-() |
Quaternion.h | ||
operator FQuat4d() |
Quaternion.h | ||
operator FQuat4f() |
Available for porting: SetFromRotationMatrix(FMatrix3f) | Quaternion.h | |
operator FRotator() |
Quaternion.h | ||
const RealType & operator[]
(
int i |
Quaternion.h | ||
RealType & operator[]
(
int i |
Quaternion.h | ||
TQuaternion & operator=
(
const TQuaternion& Copy |
Quaternion.h |