An affine transformation that can transform points.

Constructors

Properties

matrix: Float32Array

Methods

  • Concatenate a rotation.

    Parameters

    • angle: number

      The angle of rotation in radians.

    • anchorX: number

      The rotation anchor point X.

    • anchorY: number

      The rotation anchor point Y.

    Returns void

  • Reset to a rotation.

    Parameters

    • angle: number

      The angle of rotation in radians.

    • anchorX: number

      The rotation anchor point X.

    • anchorY: number

      The rotation anchor point Y.

    Returns void

  • Reset to a translation.

    Parameters

    • tx: number

      The horizontal translation value.

    • ty: number

      The vertical translation value.

    Returns void

  • Transform a point.

    Parameters

    • source: FloatPoint

      The point to transform.

    • destination: FloatPoint

      The Point to store the transformed coordinates.

    Returns void

  • Concatenate a translation.

    Parameters

    • tx: number

      The horizontal translation value.

    • ty: number

      The vertical translation value.

    Returns void