Class b2Mat33

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

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(c1: b2Vec3, c2: b2Vec3, c3: b2Vec3): b2Mat33

Constructor

Parameters

Returns

b2Mat33

Properties

public col1: b2Vec3

Column 1

public col2: b2Vec3

Column 2

public col3: b2Vec3

Column 3

Methods

public AddM(m: b2Mat33)

Adds the two 3x3 matricies together and stores the result in this matrix.

Parameters

public Copy(): b2Mat33

Creates a copy of the matrix.

Returns

b2Mat33

Copy of this 3x3 matrix.

public SetIdentity()

Sets the 3x3 matrix to identity.

public SetM(m: b2Mat33)

Sets the 3x3 matrix from a 3x3 matrix.

Parameters

public SetVVV(c1: b2Vec3, c2: b2Vec3, c3: b2Vec3)

Sets the 3x3 matrix from 3 column vectors.

Parameters

public SetZero()

Sets the 3x3 matrix to all zeros.

public Solve22(out: b2Vec2, bX: number, bY: number): b2Vec2

TODO, has something to do with the determinant

Parameters

  • out: b2Vec2

    Solved vector

  • bX: number
  • bY: number

Returns

b2Vec2

Solved vector

public Solve33(out: b2Vec3, bX: number, bY: number, bZ: number): b2Vec3

TODO, has something to do with the determinant

Parameters

  • out: b2Vec3

    Solved vector

  • bX: number
  • bY: number
  • bZ: number

Returns

b2Vec3

Solved vector