AffineTransform Class
The equations are: X1 = a1X + a2Y + TranslationX Y1 = b1X + b2Y + translationY An affine representing no transformation will have: a1 = 1.0, a2 = 0.0, b1 = 0.0, b2 = 1.0.
Implements
Methods
Name | Description | |
---|---|---|
constructor(data?: AffineTransformProps): AffineTransform | ||
equals(other: AffineTransform): boolean | Compares two Affine Transforms. | |
toJSON(): AffineTransformProps | Creates a JSON from the Affine Transform definition | |
fromJSON(data: AffineTransformProps): AffineTransform Static | Creates an Affine Transform from JSON representation. |
Properties
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.