Method Cairo.Matrix()->transform_point()
- Method
transform_point
array
(float
) transform_point(float
|int
x
,float
|int
y
)- Description
Transforms the point (x, y). The transformation is given by:
x_new = xx * x + xy * y + x0; y_new = yx * x + yy * y + y0;
- Parameter
x
X position
- Parameter
y
Y position
- Returns
The transformed point
Array float
0
X position of the new point
float
1
Y position of the new point