Method Cairo.Matrix()->transform_distance()
- Method
transform_distance
array(float) transform_distance(float|intdx,float|intdy)- 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 float0X component of the new distance vector
float1Y component of the new distance vector