Options
All
  • Public
  • Public/Protected
  • All
Menu

An affine transformation that can transform points.

Hierarchy

  • AffineTransformation

Index

Methods

  • flipX(anchorX: number): void
  • flipY(anchorY: number): void
  • isIdentity(): boolean
  • rotate(angle: number): void
  • rotateAround(angle: number, anchorX: number, anchorY: number): void
  • 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

  • scale(sx: number, sy: number): void
  • setToFlipX(anchorX: number): void
  • setToFlipY(anchorY: number): void
  • setToIdentity(): void
  • setToRotation(theta: number): void
  • setToRotationAround(angle: number, anchorX: number, anchorY: number): 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

  • setToScale(sx: number, sy: number): void
  • setToTranslation(tx: number, ty: number): void
  • toString(): string
  • transform(source: FloatPoint, destination: FloatPoint): void
  • Transform a point.

    Parameters

    • source: FloatPoint

      The point to transform.

    • destination: FloatPoint

      The Point to store the transformed coordinates.

    Returns void

  • translate(tx: number, ty: number): void

Constructors

Properties

matrix: Float32Array

Generated using TypeDoc