Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Quaternion.h |
| Include | #include "Quaternion.h" |
Syntax
template<typename RealType>
struct TQuaternion
Variables
| Type | Name | Description | |
|---|---|---|---|
| union UE::Geometry::TQuaternion::@3241 | @3242 | ||
| RealType | W | ||
| RealType | X | Note: in Wm5 version, this is a 4-element arraY stored in order (w,x,y,z). | |
| RealType[4] | XYZW | ||
| RealType | Y | ||
| RealType | Z |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TQuaternion () |
|||
TQuaternion
(
const TVector< RealType >& Axis, |
|||
TQuaternion
(
const TQuaternion< RealType >& From, |
|||
TQuaternion
(
RealType X, |
|||
TQuaternion
(
const RealType* Values |
|||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | TQuaternion
(
const TQuaternion& Copy |
||
TQuaternion
(
const TQuaternion< RealType2 >& Copy |
|||
TQuaternion
(
const TMatrix3< RealType >& RotationMatrix |
|||
TQuaternion
(
const FQuat4f& Quat |
|||
TQuaternion
(
const FQuat4d& Quat |
|||
TQuaternion
(
const FRotator& Rotator |
|||
TQuaternion
(
const TVector< RealType >& From, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TVector< RealType > | AxisX () |
||
| TVector< RealType > | AxisY () |
||
| TVector< RealType > | AxisZ () |
||
| RealType | Dot
(
const TQuaternion< RealType >& Other |
||
| bool | EpsilonEqual
(
const TQuaternion< RealType >& Other, |
||
| void | |||
| TQuaternion< RealType > | Identity () |
||
| TQuaternion< RealType > | Inverse () |
||
| TVector< RealType > | InverseMultiply
(
const TVector< RealType >& Other |
||
| RealType | Length () |
||
| RealType | Normalize
(
const RealType epsilon |
||
| TQuaternion< RealType > | Normalized
(
const RealType epsilon |
||
| void | SetAxisAngleD
(
const TVector< RealType >& Axis, |
||
| void | SetAxisAngleR
(
const TVector< RealType >& Axis, |
||
| void | SetFromRotationMatrix
(
const TMatrix3< RealType >& RotationMatrix |
||
| void | This function can take non-normalized vectors vFrom and vTo (normalizes internally) | ||
| void | SetToSlerp
(
TQuaternion< RealType > From, |
||
| RealType | |||
| TMatrix3< RealType > | |||
| TQuaternion< RealType > | Zero () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| constexpr TQuaternion< RealType > | operator- () |
||
| Available for porting: SetFromRotationMatrix(FMatrix3f) | |||
| const RealType & | operator[]
(
int i |
||
| RealType & | operator[]
(
int i |
||
| TQuaternion & | operator=
(
const TQuaternion& Copy |