Method Cairo.Matrix()->transform_distance()
- Method
transform_distance
array
(float
) transform_distance(float
|int
dx
,float
|int
dy
)- Description
Transforms the distance vector (dx, dy). This is similar to transform_point() except that the translation components of the transformation are ignored. The calculation of the returned vector is as follows:
dx_new = xx * dx + xy * dy; dy_new = yx * dx + yy * dy;
- Parameter
dx
X component of a distance vector
- Parameter
dy
Y component of a distance vector
- Returns
The transformed distance vector
Array float
0
X component of the new distance vector
float
1
Y component of the new distance vector