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
Mat3(Vec3, Vec3, Vec3)
public Mat3(Vec3 s, Vec3 f, Vec3 u)
Parameters
Fields
f
public Vec3 f
Field Value
s
public Vec3 s
Field Value
u
public Vec3 u
Field Value
Properties
Identity
public static Mat3 Identity { get; }
Property Value
this[int]
public Vec3 this[int i] { get; set; }
Parameters
iint
Property Value
Methods
ApplyEulerAngles(Vec3)
public void ApplyEulerAngles(Vec3 eulerAngles)
Parameters
eulerAnglesVec3
ApplyScaleLocal(float)
public void ApplyScaleLocal(float scaleAmount)
Parameters
scaleAmountfloat
ApplyScaleLocal(Vec3)
public void ApplyScaleLocal(Vec3 scaleAmountXYZ)
Parameters
scaleAmountXYZVec3
CreateMat3WithForward(in Vec3)
public static Mat3 CreateMat3WithForward(in Vec3 direction)
Parameters
directionVec3
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetEulerAngles()
public Vec3 GetEulerAngles()
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetScaleVector()
public Vec3 GetScaleVector()
Returns
GetScaleVectorSquared()
public Vec3 GetScaleVectorSquared()
Returns
GetUnitRotation(float)
public Mat3 GetUnitRotation(float removedScale)
Parameters
removedScalefloat
Returns
HasScale()
public bool HasScale()
Returns
IsIdentity()
public bool IsIdentity()
Returns
IsLeftHanded()
public bool IsLeftHanded()
Returns
IsOrthonormal()
public bool IsOrthonormal()
Returns
IsUniformScaled()
public bool IsUniformScaled()
Returns
IsUnit()
public bool IsUnit()
Returns
IsZero()
public bool IsZero()
Returns
Lerp(Mat3, Mat3, float)
public static Mat3 Lerp(Mat3 m1, Mat3 m2, float alpha)
Parameters
Returns
MakeUnit()
public Vec3 MakeUnit()
Returns
NearlyEquals(Mat3, float)
public bool NearlyEquals(Mat3 rhs, float epsilon = 1E-05)
Parameters
Returns
Orthonormalize()
public void Orthonormalize()
OrthonormalizeAccordingToForwardAndKeepUpAsZAxis()
public void OrthonormalizeAccordingToForwardAndKeepUpAsZAxis()
RotateAboutAnArbitraryVector(Vec3, float)
public void RotateAboutAnArbitraryVector(Vec3 v, float a)
Parameters
RotateAboutForward(float)
public void RotateAboutForward(float a)
Parameters
afloat
RotateAboutSide(float)
public void RotateAboutSide(float a)
Parameters
afloat
RotateAboutUp(float)
public void RotateAboutUp(float a)
Parameters
afloat
ToQuaternion()
public Quaternion ToQuaternion()
Returns
ToQuaternion(out Quaternion)
public void ToQuaternion(out Quaternion quat)
Parameters
quatQuaternion
ToString()
public override string ToString()
Returns
TransformToLocal(Mat3)
public Mat3 TransformToLocal(Mat3 m)
Parameters
mMat3
Returns
TransformToLocal(Vec3)
public Vec3 TransformToLocal(Vec3 v)
Parameters
vVec3
Returns
TransformToParent(Mat3)
public Mat3 TransformToParent(Mat3 m)
Parameters
mMat3
Returns
TransformToParent(Vec3)
public Vec3 TransformToParent(Vec3 v)
Parameters
vVec3
Returns
TransformToParent(ref Vec3)
public Vec3 TransformToParent(ref Vec3 v)
Parameters
vVec3
Returns
Transpose()
public Mat3 Transpose()
Returns
Operators
operator ==(Mat3, Mat3)
public static bool operator ==(Mat3 m1, Mat3 m2)
Parameters
Returns
operator !=(Mat3, Mat3)
public static bool operator !=(Mat3 m1, Mat3 m2)
Parameters
Returns
operator *(Mat3, float)
public static Mat3 operator *(Mat3 v, float a)
Parameters
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).