TRotation< FReal, 3 >

Windows
MacOS
Linux

Inheritance Hierarchy

FQuat

TRotation< FReal, 3 >

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Rotation.h

Include

#include "Chaos/Rotation.h"

Syntax

template<>
class TRotation< FReal, 3 > : public FQuat

Functions

Name Description

Public function Static

TVector< FRe...

 

CalculateAngularDelta

(
    const TRotation< FReal, 3 >& InR0,
    const TRotation< FReal, 3 >& InR1
)

Calculate the axis-angle delta (angular velocity * dt) required to take an object with orientation R0 to orientation R1.

Public function Static

TVector< FRe...

 

CalculateAngularVelocity

(
    const TRotation< FReal, 3 >& InR0,
    const TRotation< FReal, 3 >& InR1,
    const FReal InDt
)

Calculate the angular velocity required to take an object with orientation R0 to orientation R1 in time Dt.

Public function Static

TVector< FRe...

 

CalculateAngularVelocity1

(
    const TRotation< FReal, 3 >& InR0,
    const TRotation< FReal, 3 >& InR1,
    const FReal InDt
)

Calculate the angular velocity required to take an object with orientation R0 to orientation R1 in time Dt.

Public function Static

TVector< FRe...

 

CalculateAngularVelocity2

(
    const TRotation< FReal, 3 >& InR0,
    const TRotation< FReal, 3 >& InR1,
    const FReal InDt
)

Calculate the angular velocity required to take an object with orientation R0 to orientation R1 in time Dt.

Public function Static

TRotation< F...

 

Conjugate

(
    const ::Chaos::TRotation< FReal, 3 ...
)

Return the complex conjugate of the rotation

Public function Static

TRotation< F...

 

FromAxisAngle

(
    const ::Chaos::TVector< FReal, 3 > ...,
    const FReal AngleRad
)

Create a rotation about an axis by an angle specified in radians

Public function Static

TRotation< F...

 

FromElements

(
    const FReal X,
    const FReal Y,
    const FReal Z,
    const FReal W
)

Create a rotation by explicitly specifying all elements

Public function Static

TRotation< F...

 

FromElements

(
    const ::Chaos::TVector< FReal, 3 > ...,
    const FReal W
)

Create a rotation by explicitly specifying all elements

Public function Static

TRotation< F...

 

FromIdentity()

Create an identity rotation

Public function Static

TRotation< F...

 

FromRotatedVector

(
    const ::Chaos::TVector< FReal, 3 > ...,
    const ::Chaos::TVector< FReal, 3 > ...
)

Generate a Rotation that would rotate vector InitialVector to FinalVector

Public function Static

TRotation< F...

 

FromVector

(
    const ::Chaos::TVector< FReal, 3 > ...
)

Create a rotation about an axis V/|V| by angle |V| in radians

Public function Const

bool

 

GetRotationAxisSafe

(
    TVector< FReal, 3 >& OutAxis,
    const TVector< FReal, 3 >& Default...,
    FReal EpsilionSq
)

Extract the axis from the Quaternion.

Public function Static

TRotation< F...

 

IntegrateRotationWithAngularVelocity

(
    const TRotation< FReal, 3 >& InR0,
    const TVector< FReal, 3 >& InW,
    const FReal InDt
)

Return a new rotation equal to the input rotation with angular velocity W applied over time Dt.

Public function Static

bool

 

IsNearlyEqual

(
    const TRotation< FReal, 3 >& A,
    const TRotation< FReal, 3 >& B,
    const FReal Epsilon
)

Check that two rotations are approximately equal.

Public function Static

TRotation< F...

 

Negate

(
    const ::Chaos::TRotation< FReal, 3 ...
)

Negate all values of the quaternion (

not the inverse rotation. See Conjugate)

Public function Const

bool

 

ToAxisAndAngleSafe

(
    TVector< FReal, 3 >& OutAxis,
    FReal& OutAngle,
    const TVector< FReal, 3 >& Default...,
    FReal EpsilionSq
)

Extract the axis and angle from the Quaternion.

Public function Const

PMatrix< FRe...

 

ToMatrix()

Public function Const

void

 

ToSwingTwistX

(
    FQuat& OutSwing,
    FQuat& OutTwist
)

Extract the Swing and Twist rotations, assuming that the Twist Axis is (1,0,0). /see ToSwingTwist

Public function

 

TRotation

(
    const FQuat& Quat
)

Public function

 

TRotation()

Public function

 

TRotation

(
    const FMatrix& Matrix
)

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