TQuaternion

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Quaternion.h

Include

#include "Quaternion.h"

Syntax

template<typename RealType>
struct TQuaternion

Variables

Name Description

Public variable

RealType

 

W

Public variable

RealType

 

X

Public variable

RealType

 

Y

Public variable

RealType

 

Z

Constructors

Name Description

Public function

TQuaternion()

Public function

TQuaternion

(
    RealType X,
    RealType Y,
    RealType Z,
    RealType W
)

Public function

TQuaternion

(
    const RealType* Values
)

Public function

TQuaternion

(
    const TQuaternion& Copy
)

Public function

TQuaternion

(
    const TQuaternion< RealType2 >& Co...
)

Public function

TQuaternion

(
    const TMatrix3< RealType >& Rotati...
)

Public function

TQuaternion

(
    const FQuat& Quat
)

Public function

TQuaternion

(
    const FVector3< RealType >& From,
    const FVector3< RealType >& To
)

Public function

TQuaternion

(
    const FVector3< RealType >& Axis,
    RealType Angle,
    bool bAngleIsDegrees
)

Public function

TQuaternion

(
    const TQuaternion< RealType >& Fro...,
    const TQuaternion< RealType >& To,
    RealType InterpT
)

Functions

Name Description

Public function Const

FVector3< Re...

 

AxisX()

Public function Const

FVector3< Re...

 

AxisY()

Public function Const

FVector3< Re...

 

AxisZ()

Public function Const

RealType

 

Dot

(
    const TQuaternion< RealType >& Oth...
)

Public function Const

bool

 

EpsilonEqual

(
    const TQuaternion< RealType >& Oth...,
    RealType Epsilon
)

Public function Const

void

 

GetAxes

(
    FVector3< RealType >& X,
    FVector3< RealType >& Y,
    FVector3< RealType >& Z
)

Public function Static

TQuaternion<...

 

Identity()

Public function Const

TQuaternion<...

 

Inverse()

Public function Const

FVector3< Re...

 

InverseMultiply

(
    const FVector3< RealType >& Other
)

Public function Const

RealType

 

Length()

Public function

RealType

 

Normalize

(
    const RealType epsilon
)

Public function Const

TQuaternion<...

 

Normalized

(
    const RealType epsilon
)

Public function

void

 

SetAxisAngleD

(
    const FVector3< RealType >& Axis,
    RealType AngleDeg
)

Public function

void

 

SetAxisAngleR

(
    const FVector3< RealType >& Axis,
    RealType AngleRad
)

Public function

void

 

SetFromRotationMatrix

(
    const TMatrix3< RealType >& Rotati...
)

Public function

void

 

SetFromTo

(
    const FVector3< RealType >& From,
    const FVector3< RealType >& To
)

This function can take non-normalized vectors vFrom and vTo (normalizes internally)

Public function

void

 

SetToSlerp

(
    TQuaternion< RealType > From,
    TQuaternion< RealType > To,
    RealType InterpT
)

Public function Const

RealType

 

SquaredLength()

Public function Const

TMatrix3< Re...

 

ToRotationMatrix()

Public function Static

TQuaternion<...

 

Zero()

Operators

Name Description

Public function Const

constexpr TQ...

 

operator-()

Public function Const

 

operator FQuat()

Available for porting: SetFromRotationMatrix(FMatrix3f)

Public function Const

const RealTy...

 

operator[]

(
    int i
)

Public function

RealType &

 

operator[]

(
    int i
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss