Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TQuat
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TQuat () |
Default constructor (no initialization). | Math/Quat.h | |
TQuat
(
EForceInit |
Creates and initializes a new quaternion, with the W component either 0 or 1. | Math/Quat.h | |
TQuat
(
T V |
Initializes all elements to V | Math/Quat.h | |
| Creates and initializes a new quaternion from the given rotator. | Math/Quat.h | ||
| Creates and initializes a new quaternion from the given matrix. | Math/Quat.h | ||
| Conversion to other type. | Math/Quat.h | ||
TQuat
(
QuatVectorRegister V |
Creates and initializes a new quaternion from the XYZW values in the given VectorRegister4Float. | Math/Quat.h | |
| Creates and initializes a new quaternion from the a rotation around the given axis. | Math/Quat.h | ||
TQuat
(
T InX, |
Constructor. | Math/Quat.h |
TQuat()
Description
Default constructor (no initialization).
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat()
TQuat(EForceInit)
Description
Creates and initializes a new quaternion, with the W component either 0 or 1.
TQuat inline functions
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
EForceInit
)
Parameters
| Name | Remarks |
|---|---|
| EForceInit | Force init enum: if equal to ForceInitToZero then W is 0, otherwise W = 1 (creating an identity transform) |
TQuat(T)
Description
Initializes all elements to V
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
template<typename DummyT, std::enable_if_t<(std::is_arithmetic_v< T >), int >>
TQuat
(
T V
)
TQuat(const TRotator< T > &)
Description
Creates and initializes a new quaternion from the given rotator.
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
const TRotator < T > & R
)
Parameters
| Name | Remarks |
|---|---|
| R | The rotator to initialize from. |
TQuat(const TMatrix< T > &)
Description
Creates and initializes a new quaternion from the given matrix.
TQuat inline functions
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
const TMatrix < T > & M
)
Parameters
| Name | Remarks |
|---|---|
| M | The rotation matrix to initialize from. |
TQuat(const TQuat< FArg > &)
Description
Conversion to other type.
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
template<typename FArg, std::enable_if_t<(!std::is_same_v< T, FArg >), int >>
TQuat
(
const TQuat < FArg > & From
)
TQuat(QuatVectorRegister)
Description
Creates and initializes a new quaternion from the XYZW values in the given VectorRegister4Float.
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
QuatVectorRegister V
)
Parameters
| Name | Remarks |
|---|---|
| V | XYZW components of the quaternion packed into a single VectorRegister4Float |
TQuat(TVector< T >, T)
Description
Creates and initializes a new quaternion from the a rotation around the given axis.
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
TVector < T > Axis,
T AngleRad
)
Parameters
| Name | Remarks |
|---|---|
| Axis | assumed to be a normalized vector |
| Angle | angle to rotate above the given axis (in radians) |
TQuat(T, T, T, T)
Description
Constructor.
| Name | TQuat |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
TQuat
(
T InX,
T InY,
T InZ,
T InW
)
Parameters
| Name | Remarks |
|---|---|
| InX | X component of the quaternion |
| InY | Y component of the quaternion |
| InZ | Z component of the quaternion |
| InW | W component of the quaternion |