Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transformation

Hierarchy

  • Transformation

Index

Constructors

Methods

Constructors

constructor

  • new Transformation(a: number, b: number, c: number, d: number): Transformation
  • Creates a transformation object with the given coefficients.

    Parameters

    • a: number
    • b: number
    • c: number
    • d: number

    Returns Transformation

Methods

transform

  • Returns a transformed point, optionally multiplied by the given scale. Only accepts real L.Point instances, not arrays.

    Parameters

    • point: Point
    • Optional scale: number

    Returns Point

untransform

  • untransform(point: Point, scale?: number): Point
  • Returns the reverse transformation of the given point, optionally divided by the given scale. Only accepts real L.Point instances, not arrays.

    Parameters

    • point: Point
    • Optional scale: number

    Returns Point