Class Transformation

Index

Constructor methods

Methods

Constructor methods

constructor(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

public transform(point: Point, scale?: number): Point

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

Parameters

  • point: Point
  • scale?: number optional

Returns

Point

public 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
  • scale?: number optional

Returns

Point