G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FQuat4f Struct Reference

Quaternion. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\Quat.h. More...

Public Member Functions

Functions
FVector3f GetForwardVector () const
FQuat4f opAdd (FQuat4f Other) const
FQuat4f opSub (FQuat4f Other) const
FQuat4f opAddAssign (FQuat4f Other)
FQuat4f opSubAssign (FQuat4f Other)
bool opEquals (FQuat4f Other) const
bool Equals (FQuat4f Other, float32 Tolerance=KINDA_SMALL_NUMBER) const
bool IsIdentity (float32 Tolerance=SMALL_NUMBER) const
FQuat4f opMul (FQuat4f Other) const
FQuat4f opMulAssign (FQuat4f Other)
FQuat4f opMul (float32 Scale) const
FQuat4f opMulAssign (float32 Scale)
FQuat4f opDiv (float32 Scale) const
FQuat4f opDivAssign (float32 Scale)
void Normalize (float32 Tolerance=SMALL_NUMBER)
FQuat4f GetNormalized (float32 Tolerance=SMALL_NUMBER) const
bool IsNormalized () const
float32 Size () const
float32 SizeSquared () const
float32 GetAngle () const
FQuat4f Log () const
FQuat4f Exp () const
FQuat4f Inverse () const
float32 AngularDistance (FQuat4f Q) const
bool ContainsNaN () const
void EnforceShortestArcWith (FQuat4f Other)
void ToAxisAndAngle (FVector3f &Axis, float32 &Angle) const
FVector3f opMul (FVector3f Other) const
FVector3f Euler () const
FVector3f RotateVector (FVector3f V) const
FVector3f UnrotateVector (FVector3f V) const
FVector3f GetAxisX () const
FVector3f GetAxisY () const
FVector3f GetAxisZ () const
FQuat4f & opAssign (FQuat4f Other)
FVector3f GetRightVector () const
FVector3f GetUpVector () const
FVector3f Vector () const
FVector3f GetRotationAxis () const
FRotator3f Rotator () const
void ToSwingTwist (FVector3f InTwistAxis, FQuat4f &OutSwing, FQuat4f &OutTwist) const
float32 GetTwistAngle (FVector3f InTwistAxis) const
bool InitFromString (FString SourceString)
FString ToString () const

Static Public Member Functions

Static Functions
static FQuat4f Squad (FQuat4f Quat1, FQuat4f Tang1, FQuat4f Quat2, FQuat4f Tang2, float32 Alpha)
static FQuat4f FindBetween (FVector3f Vector1, FVector3f Vector2)
static FQuat4f FindBetweenVectors (FVector3f Vector1, FVector3f Vector2)
static FQuat4f FindBetweenNormals (FVector3f Normal1, FVector3f Normal2)
static FQuat4f FastLerp (FQuat4f A, FQuat4f B, float32 Alpha)
static FQuat4f FastBilerp (FQuat4f P00, FQuat4f P10, FQuat4f P01, FQuat4f P11, float32 FracX, float32 FracY)
static FQuat4f Slerp_NotNormalized (FQuat4f Quat1, FQuat4f Quat2, float32 Slerp)
static FQuat4f Slerp (FQuat4f Quat1, FQuat4f Quat2, float32 Slerp)
static float32 Error (FQuat4f Q1, FQuat4f Q2)
static float32 ErrorAutoNormalize (FQuat4f A, FQuat4f B)
static FQuat4f SlerpFullPath_NotNormalized (FQuat4f Quat1, FQuat4f Quat2, float32 Slerp)
static FQuat4f SlerpFullPath (FQuat4f Quat1, FQuat4f Quat2, float32 Slerp)
static FQuat4f MakeFromEuler (FVector3f Euler)
static FQuat4f SquadFullPath (FQuat4f Quat1, FQuat4f Tang1, FQuat4f Quat2, FQuat4f Tang2, float32 Alpha)
static void CalcTangents (FQuat4f PrevP, FQuat4f P, FQuat4f NextP, float32 Tension, FQuat4f &OutTan)
static FQuat4f MakeFromAxes (FVector3f Forward, FVector3f Right, FVector3f Up)
static FQuat4f MakeFromX (FVector3f XAxis)
static FQuat4f MakeFromXY (FVector3f XAxis, FVector3f YAxis)
static FQuat4f MakeFromXZ (FVector3f XAxis, FVector3f ZAxis)
static FQuat4f MakeFromY (FVector3f YAxis)
static FQuat4f MakeFromYX (FVector3f YAxis, FVector3f XAxis)
static FQuat4f MakeFromYZ (FVector3f YAxis, FVector3f ZAxis)
static FQuat4f MakeFromZ (FVector3f ZAxis)
static FQuat4f MakeFromZX (FVector3f ZAxis, FVector3f XAxis)
static FQuat4f MakeFromZY (FVector3f ZAxis, FVector3f YAxis)

Public Attributes

Quat
float32 Y
float32 Z
float32 W
float32 X
Variables
const FVector3f AxisX
const float32 Angle
const FVector3f AxisY
const FVector3f AxisZ
const FVector3f ForwardVector
const FVector3f RightVector
const FVector3f UpVector
const FVector3f RotationAxis

Static Public Attributes

Static Variables
static const FQuat4f Identity

Detailed Description

Quaternion. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\Quat.h.

Member Function Documentation

◆ AngularDistance()

float32 AngularDistance ( FQuat4f Q) const

◆ CalcTangents()

void CalcTangents ( FQuat4f PrevP,
FQuat4f P,
FQuat4f NextP,
float32 Tension,
FQuat4f & OutTan )
static

◆ ContainsNaN()

bool ContainsNaN ( ) const

◆ EnforceShortestArcWith()

void EnforceShortestArcWith ( FQuat4f Other)

◆ Equals()

bool Equals ( FQuat4f Other,
float32 Tolerance = KINDA_SMALL_NUMBER ) const

◆ Error()

float32 Error ( FQuat4f Q1,
FQuat4f Q2 )
static

◆ ErrorAutoNormalize()

float32 ErrorAutoNormalize ( FQuat4f A,
FQuat4f B )
static

◆ Euler()

FVector3f Euler ( ) const

◆ Exp()

FQuat4f Exp ( ) const

◆ FastBilerp()

FQuat4f FastBilerp ( FQuat4f P00,
FQuat4f P10,
FQuat4f P01,
FQuat4f P11,
float32 FracX,
float32 FracY )
static

◆ FastLerp()

FQuat4f FastLerp ( FQuat4f A,
FQuat4f B,
float32 Alpha )
static

◆ FindBetween()

FQuat4f FindBetween ( FVector3f Vector1,
FVector3f Vector2 )
static

◆ FindBetweenNormals()

FQuat4f FindBetweenNormals ( FVector3f Normal1,
FVector3f Normal2 )
static

◆ FindBetweenVectors()

FQuat4f FindBetweenVectors ( FVector3f Vector1,
FVector3f Vector2 )
static

◆ GetAngle()

float32 GetAngle ( ) const

◆ GetAxisX()

FVector3f GetAxisX ( ) const

◆ GetAxisY()

FVector3f GetAxisY ( ) const

◆ GetAxisZ()

FVector3f GetAxisZ ( ) const

◆ GetForwardVector()

FVector3f GetForwardVector ( ) const

◆ GetNormalized()

FQuat4f GetNormalized ( float32 Tolerance = SMALL_NUMBER) const

◆ GetRightVector()

FVector3f GetRightVector ( ) const

◆ GetRotationAxis()

FVector3f GetRotationAxis ( ) const

◆ GetTwistAngle()

float32 GetTwistAngle ( FVector3f InTwistAxis) const

◆ GetUpVector()

FVector3f GetUpVector ( ) const

◆ InitFromString()

bool InitFromString ( FString SourceString)

◆ Inverse()

FQuat4f Inverse ( ) const

◆ IsIdentity()

bool IsIdentity ( float32 Tolerance = SMALL_NUMBER) const

◆ IsNormalized()

bool IsNormalized ( ) const

◆ Log()

FQuat4f Log ( ) const

◆ MakeFromAxes()

FQuat4f MakeFromAxes ( FVector3f Forward,
FVector3f Right,
FVector3f Up )
static

◆ MakeFromEuler()

FQuat4f MakeFromEuler ( FVector3f Euler)
static

◆ MakeFromX()

FQuat4f MakeFromX ( FVector3f XAxis)
static

◆ MakeFromXY()

FQuat4f MakeFromXY ( FVector3f XAxis,
FVector3f YAxis )
static

◆ MakeFromXZ()

FQuat4f MakeFromXZ ( FVector3f XAxis,
FVector3f ZAxis )
static

◆ MakeFromY()

FQuat4f MakeFromY ( FVector3f YAxis)
static

◆ MakeFromYX()

FQuat4f MakeFromYX ( FVector3f YAxis,
FVector3f XAxis )
static

◆ MakeFromYZ()

FQuat4f MakeFromYZ ( FVector3f YAxis,
FVector3f ZAxis )
static

◆ MakeFromZ()

FQuat4f MakeFromZ ( FVector3f ZAxis)
static

◆ MakeFromZX()

FQuat4f MakeFromZX ( FVector3f ZAxis,
FVector3f XAxis )
static

◆ MakeFromZY()

FQuat4f MakeFromZY ( FVector3f ZAxis,
FVector3f YAxis )
static

◆ Normalize()

void Normalize ( float32 Tolerance = SMALL_NUMBER)

◆ opAdd()

FQuat4f opAdd ( FQuat4f Other) const

◆ opAddAssign()

FQuat4f opAddAssign ( FQuat4f Other)

◆ opAssign()

FQuat4f & opAssign ( FQuat4f Other)

◆ opDiv()

FQuat4f opDiv ( float32 Scale) const

◆ opDivAssign()

FQuat4f opDivAssign ( float32 Scale)

◆ opEquals()

bool opEquals ( FQuat4f Other) const

◆ opMul() [1/3]

FQuat4f opMul ( float32 Scale) const

◆ opMul() [2/3]

FQuat4f opMul ( FQuat4f Other) const

◆ opMul() [3/3]

FVector3f opMul ( FVector3f Other) const

◆ opMulAssign() [1/2]

FQuat4f opMulAssign ( float32 Scale)

◆ opMulAssign() [2/2]

FQuat4f opMulAssign ( FQuat4f Other)

◆ opSub()

FQuat4f opSub ( FQuat4f Other) const

◆ opSubAssign()

FQuat4f opSubAssign ( FQuat4f Other)

◆ RotateVector()

FVector3f RotateVector ( FVector3f V) const

◆ Rotator()

FRotator3f Rotator ( ) const

◆ Size()

float32 Size ( ) const

◆ SizeSquared()

float32 SizeSquared ( ) const

◆ Slerp()

FQuat4f Slerp ( FQuat4f Quat1,
FQuat4f Quat2,
float32 Slerp )
static

◆ Slerp_NotNormalized()

FQuat4f Slerp_NotNormalized ( FQuat4f Quat1,
FQuat4f Quat2,
float32 Slerp )
static

◆ SlerpFullPath()

FQuat4f SlerpFullPath ( FQuat4f Quat1,
FQuat4f Quat2,
float32 Slerp )
static

◆ SlerpFullPath_NotNormalized()

FQuat4f SlerpFullPath_NotNormalized ( FQuat4f Quat1,
FQuat4f Quat2,
float32 Slerp )
static

◆ Squad()

FQuat4f Squad ( FQuat4f Quat1,
FQuat4f Tang1,
FQuat4f Quat2,
FQuat4f Tang2,
float32 Alpha )
static

◆ SquadFullPath()

FQuat4f SquadFullPath ( FQuat4f Quat1,
FQuat4f Tang1,
FQuat4f Quat2,
FQuat4f Tang2,
float32 Alpha )
static

◆ ToAxisAndAngle()

void ToAxisAndAngle ( FVector3f & Axis,
float32 & Angle ) const

◆ ToString()

FString ToString ( ) const

◆ ToSwingTwist()

void ToSwingTwist ( FVector3f InTwistAxis,
FQuat4f & OutSwing,
FQuat4f & OutTwist ) const

◆ UnrotateVector()

FVector3f UnrotateVector ( FVector3f V) const

◆ Vector()

FVector3f Vector ( ) const

Member Data Documentation

◆ Angle

const float32 Angle

◆ AxisX

const FVector3f AxisX

◆ AxisY

const FVector3f AxisY

◆ AxisZ

const FVector3f AxisZ

◆ ForwardVector

const FVector3f ForwardVector

◆ Identity

const FQuat4f Identity
static

◆ RightVector

const FVector3f RightVector

◆ RotationAxis

const FVector3f RotationAxis

◆ UpVector

const FVector3f UpVector

◆ W

float32 W

◆ X

float32 X

◆ Y

float32 Y

◆ Z

float32 Z