Table of Contents

Struct Mat3

Namespace
TaleWorlds.Library
Assembly
TaleWorlds.Library.dll
public struct Mat3
Inherited Members
Extension Methods

Constructors

Mat3(float, float, float, float, float, float, float, float, float)

public Mat3(float sx, float sy, float sz, float fx, float fy, float fz, float ux, float uy, float uz)

Parameters

sx float
sy float
sz float
fx float
fy float
fz float
ux float
uy float
uz float

Mat3(Vec3, Vec3, Vec3)

public Mat3(Vec3 s, Vec3 f, Vec3 u)

Parameters

s Vec3
f Vec3
u Vec3

Fields

f

public Vec3 f

Field Value

Vec3

s

public Vec3 s

Field Value

Vec3

u

public Vec3 u

Field Value

Vec3

Properties

Identity

public static Mat3 Identity { get; }

Property Value

Mat3

this[int]

public Vec3 this[int i] { get; set; }

Parameters

i int

Property Value

Vec3

Methods

ApplyEulerAngles(Vec3)

public void ApplyEulerAngles(Vec3 eulerAngles)

Parameters

eulerAngles Vec3

ApplyScaleLocal(float)

public void ApplyScaleLocal(float scaleAmount)

Parameters

scaleAmount float

ApplyScaleLocal(Vec3)

public void ApplyScaleLocal(Vec3 scaleAmountXYZ)

Parameters

scaleAmountXYZ Vec3

CreateMat3WithForward(in Vec3)

public static Mat3 CreateMat3WithForward(in Vec3 direction)

Parameters

direction Vec3

Returns

Mat3

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetEulerAngles()

public Vec3 GetEulerAngles()

Returns

Vec3

GetHashCode()

public override int GetHashCode()

Returns

int

GetScaleVector()

public Vec3 GetScaleVector()

Returns

Vec3

GetScaleVectorSquared()

public Vec3 GetScaleVectorSquared()

Returns

Vec3

GetUnitRotation(float)

public Mat3 GetUnitRotation(float removedScale)

Parameters

removedScale float

Returns

Mat3

HasScale()

public bool HasScale()

Returns

bool

IsIdentity()

public bool IsIdentity()

Returns

bool

IsLeftHanded()

public bool IsLeftHanded()

Returns

bool

IsOrthonormal()

public bool IsOrthonormal()

Returns

bool

IsUniformScaled()

public bool IsUniformScaled()

Returns

bool

IsUnit()

public bool IsUnit()

Returns

bool

IsZero()

public bool IsZero()

Returns

bool

Lerp(Mat3, Mat3, float)

public static Mat3 Lerp(Mat3 m1, Mat3 m2, float alpha)

Parameters

m1 Mat3
m2 Mat3
alpha float

Returns

Mat3

MakeUnit()

public Vec3 MakeUnit()

Returns

Vec3

NearlyEquals(Mat3, float)

public bool NearlyEquals(Mat3 rhs, float epsilon = 1E-05)

Parameters

rhs Mat3
epsilon float

Returns

bool

Orthonormalize()

public void Orthonormalize()

OrthonormalizeAccordingToForwardAndKeepUpAsZAxis()

public void OrthonormalizeAccordingToForwardAndKeepUpAsZAxis()

RotateAboutAnArbitraryVector(Vec3, float)

public void RotateAboutAnArbitraryVector(Vec3 v, float a)

Parameters

v Vec3
a float

RotateAboutForward(float)

public void RotateAboutForward(float a)

Parameters

a float

RotateAboutSide(float)

public void RotateAboutSide(float a)

Parameters

a float

RotateAboutUp(float)

public void RotateAboutUp(float a)

Parameters

a float

ToQuaternion()

public Quaternion ToQuaternion()

Returns

Quaternion

ToQuaternion(out Quaternion)

public void ToQuaternion(out Quaternion quat)

Parameters

quat Quaternion

ToString()

public override string ToString()

Returns

string

TransformToLocal(Mat3)

public Mat3 TransformToLocal(Mat3 m)

Parameters

m Mat3

Returns

Mat3

TransformToLocal(Vec3)

public Vec3 TransformToLocal(Vec3 v)

Parameters

v Vec3

Returns

Vec3

TransformToParent(Mat3)

public Mat3 TransformToParent(Mat3 m)

Parameters

m Mat3

Returns

Mat3

TransformToParent(Vec3)

public Vec3 TransformToParent(Vec3 v)

Parameters

v Vec3

Returns

Vec3

TransformToParent(ref Vec3)

public Vec3 TransformToParent(ref Vec3 v)

Parameters

v Vec3

Returns

Vec3

Transpose()

public Mat3 Transpose()

Returns

Mat3

Operators

operator ==(Mat3, Mat3)

public static bool operator ==(Mat3 m1, Mat3 m2)

Parameters

m1 Mat3
m2 Mat3

Returns

bool

operator !=(Mat3, Mat3)

public static bool operator !=(Mat3 m1, Mat3 m2)

Parameters

m1 Mat3
m2 Mat3

Returns

bool

operator *(Mat3, float)

public static Mat3 operator *(Mat3 v, float a)

Parameters

v Mat3
a float

Returns

Mat3

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).