Ctrl+K

Mat33

Declaration

public struct tainicom.Aether.Physics2D.Common.Mat33

A 3-by-3 matrix. Stored in column-major order.

Constructors

Mat33

Construct this matrix using columns.

void Mat33(Vector3 c1, Vector3 c2, Vector3 c3)

Parameters:

Name Type Description
c1 Strawberry.Math.Vector3 The c1.
c2 Strawberry.Math.Vector3 The c2.
c3 Strawberry.Math.Vector3 The c3.

Fields

ex

Vector3 ex

ey

Vector3 ey

ez

Vector3 ez

Methods

SetZero

Set this matrix to all zeros.

void SetZero()

Solve33

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Vector3 Solve33(Vector3 b)

Parameters:

Name Type Description
b Strawberry.Math.Vector3 The b.

Solve22

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. Solve only the upper 2-by-2 matrix equation.

Vector2 Solve22(Vector2 b)

Parameters:

Name Type Description
b Strawberry.Math.Vector2 The b.

GetInverse22

void GetInverse22(ref Mat33 M)

Parameters:

Name Type Description
M ref tainicom.Aether.Physics2D.Common.Mat33

GetSymInverse33

void GetSymInverse33(ref Mat33 M)

Parameters:

Name Type Description
M ref tainicom.Aether.Physics2D.Common.Mat33