Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Mat22

Hierarchy

  • b2Mat22

Index

Properties

Readonly data

data: Float32Array = new Float32Array([ 1, 0, 0, 1 ])

Readonly ex

ex: b2Vec2 = new b2Vec2(this.data.subarray(0, 2))

Readonly ey

ey: b2Vec2 = new b2Vec2(this.data.subarray(2, 4))

Static Readonly IDENTITY

IDENTITY: Readonly<b2Mat22> = new b2Mat22()

Methods

Clone

  • Returns b2Mat22

Copy

  • Parameters

    Returns this

GetAngle

  • GetAngle(): number
  • Returns number

GetInverse

  • Parameters

    Returns b2Mat22

SelfAbs

  • SelfAbs(): this
  • Returns this

SelfAddM

  • Parameters

    Returns this

SelfInv

  • SelfInv(): this
  • Returns this

SelfSubM

  • Parameters

    Returns this

SetAngle

  • SetAngle(radians: number): this
  • Parameters

    • radians: number

    Returns this

SetIdentity

  • SetIdentity(): this
  • Returns this

SetSSSS

  • SetSSSS(r1c1: number, r1c2: number, r2c1: number, r2c2: number): this
  • Parameters

    • r1c1: number
    • r1c2: number
    • r2c1: number
    • r2c2: number

    Returns this

SetVV

  • SetVV(c1: XY, c2: XY): this
  • Parameters

    Returns this

SetZero

  • SetZero(): this
  • Returns this

Solve

  • Solve<T>(b_x: number, b_y: number, out: T): T
  • Type parameters

    Parameters

    • b_x: number
    • b_y: number
    • out: T

    Returns T

Static AbsM

  • Parameters

    Returns b2Mat22

Static AddMM

Static FromAngle

  • FromAngle(radians: number): b2Mat22
  • Parameters

    • radians: number

    Returns b2Mat22

Static FromSSSS

  • FromSSSS(r1c1: number, r1c2: number, r2c1: number, r2c2: number): b2Mat22
  • Parameters

    • r1c1: number
    • r1c2: number
    • r2c1: number
    • r2c2: number

    Returns b2Mat22

Static FromVV

  • Parameters

    Returns b2Mat22

Static MulMM

Static MulMV

  • Type parameters

    Parameters

    Returns T

Static MulTMM

Static MulTMV

  • Type parameters

    Parameters

    Returns T

Generated using TypeDoc