M&B: Bannerlord 1.2.10
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.Transformation Struct Reference

Public Member Functions

 Transformation (Vec3 origin, Mat3 rotation, Vec3 scale)
 
bool HasNegativeScale ()
 
Vec3 TransformToParent (Vec3 v)
 
Transformation TransformToParent (Transformation t)
 
Vec3 TransformToLocal (Vec3 v)
 
Transformation TransformToLocal (Transformation t)
 
void Rotate (float radian, Vec3 axis)
 
void ApplyScale (Vec3 vec3)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static Transformation CreateFromMatrixFrame (MatrixFrame matrixFrame)
 
static Transformation CreateFromRotation (Mat3 rotation)
 
static bool operator== (Transformation t1, Transformation t2)
 
static bool operator!= (Transformation t1, Transformation t2)
 

Public Attributes

Vec3 Origin
 
Mat3 Rotation
 
Vec3 Scale
 

Properties

static Transformation Identity [get]
 
MatrixFrame AsMatrixFrame [get]
 

Constructor & Destructor Documentation

◆ Transformation()

TaleWorlds.Library.Transformation.Transformation ( Vec3 origin,
Mat3 rotation,
Vec3 scale )

Member Function Documentation

◆ CreateFromMatrixFrame()

static Transformation TaleWorlds.Library.Transformation.CreateFromMatrixFrame ( MatrixFrame matrixFrame)
static

◆ HasNegativeScale()

bool TaleWorlds.Library.Transformation.HasNegativeScale ( )

◆ CreateFromRotation()

static Transformation TaleWorlds.Library.Transformation.CreateFromRotation ( Mat3 rotation)
static

◆ TransformToParent() [1/2]

Vec3 TaleWorlds.Library.Transformation.TransformToParent ( Vec3 v)

◆ TransformToParent() [2/2]

Transformation TaleWorlds.Library.Transformation.TransformToParent ( Transformation t)

◆ TransformToLocal() [1/2]

Vec3 TaleWorlds.Library.Transformation.TransformToLocal ( Vec3 v)

◆ TransformToLocal() [2/2]

Transformation TaleWorlds.Library.Transformation.TransformToLocal ( Transformation t)

◆ Rotate()

void TaleWorlds.Library.Transformation.Rotate ( float radian,
Vec3 axis )

◆ operator==()

static bool TaleWorlds.Library.Transformation.operator== ( Transformation t1,
Transformation t2 )
static

◆ ApplyScale()

void TaleWorlds.Library.Transformation.ApplyScale ( Vec3 vec3)

◆ operator!=()

static bool TaleWorlds.Library.Transformation.operator!= ( Transformation t1,
Transformation t2 )
static

◆ Equals()

override bool TaleWorlds.Library.Transformation.Equals ( object obj)

◆ GetHashCode()

override int TaleWorlds.Library.Transformation.GetHashCode ( )

◆ ToString()

override string TaleWorlds.Library.Transformation.ToString ( )

Member Data Documentation

◆ Origin

Vec3 TaleWorlds.Library.Transformation.Origin

◆ Rotation

Mat3 TaleWorlds.Library.Transformation.Rotation

◆ Scale

Vec3 TaleWorlds.Library.Transformation.Scale

Property Documentation

◆ Identity

Transformation TaleWorlds.Library.Transformation.Identity
staticget

◆ AsMatrixFrame

MatrixFrame TaleWorlds.Library.Transformation.AsMatrixFrame
get