Method Cairo.Context()->user_to_device_distance()
- Method
user_to_device_distance
array
(float
) user_to_device_distance(float
|int
dx
,float
|int
dy
)- Description
Transform a distance vector from user space to device space. This function is similar to user_to_device() except that the translation components of the CTM will be ignored when transforming (dx, 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