applyToPoint
Transforms a point by a matrix.
Available since v3.1.5
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
m | Matrix | The matrix |
p | Point | The point |
Returns
Section titled “Returns”Point — The transformed point
Examples
Section titled “Examples”Transform a point
Section titled “Transform a point”x’ = a·x + c·y + e, y’ = b·x + d·y + f.
With a helper matrix
Section titled “With a helper matrix”Any matrix built by translate, scale, rotate or multiply.
Related Types
Section titled “Related Types”Matrix
Section titled “Matrix”A 2D affine transformation, in the layout of CSS and SVG matrix(a, b, c, d, e, f):
A point in 2D space.
