Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Transform

Hierarchy

  • b2Transform

Index

Properties

Readonly p

p: b2Vec2 = new b2Vec2()

Readonly q

q: b2Rot = new b2Rot()

Static Readonly IDENTITY

IDENTITY: Readonly<b2Transform> = new b2Transform()

Methods

Clone

  • Returns b2Transform

Copy

  • Parameters

    Returns this

GetAngle

  • GetAngle(): number
  • Returns number

GetPosition

  • GetPosition(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetRotation

  • GetRotation(): Readonly<b2Rot>
  • Returns Readonly<b2Rot>

GetRotationAngle

  • GetRotationAngle(): number
  • Returns number

SetIdentity

  • SetIdentity(): this
  • Returns this

SetPosition

  • SetPosition(position: XY): this
  • Parameters

    • position: XY

    Returns this

SetPositionAngle

  • SetPositionAngle(pos: XY, a: number): this
  • Parameters

    • pos: XY
    • a: number

    Returns this

SetPositionRotation

  • SetPositionRotation(position: XY, q: Readonly<b2Rot>): this
  • Parameters

    Returns this

SetPositionXY

  • SetPositionXY(x: number, y: number): this
  • Parameters

    • x: number
    • y: number

    Returns this

SetRotation

  • SetRotation(rotation: Readonly<b2Rot>): this
  • Parameters

    • rotation: Readonly<b2Rot>

    Returns this

SetRotationAngle

  • SetRotationAngle(radians: number): this
  • Parameters

    • radians: number

    Returns this

Static MulTXV

  • Type parameters

    Parameters

    Returns T

Static MulTXX

Static MulXV

  • Type parameters

    Parameters

    Returns T

Static MulXX

Generated using TypeDoc