Options
All
  • Public
  • Public/Protected
  • All
Menu

A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.

Hierarchy

  • b2Transform

Index

Constructors

Properties

Methods

Constructors

constructor

  • The default constructor does nothing (for performance).

    Parameters

    Returns b2Transform

Properties

R

Transform rotation.

position

position: b2Vec2

Transform position.

Methods

GetAngle

  • GetAngle(): number
  • Calculate the angle that the rotation matrix represents.

    Returns number

    Rotation matrix angle.

Initialize

  • Initialize using a position vector and rotation matrix.

    Parameters

    Returns void

Set

  • Sets the transfrom from a transfrom.

    Parameters

    Returns void

SetIdentity

  • SetIdentity(): void
  • Set this to the identity transform.

    Returns void

Generated using TypeDoc