get_simple_transform
Description:
public bool get_simple_transform (out double x, out double y, out double scale, out double rotation)
This function can be used to get the position, scale and rotation of an item, providing that the item has a simple transformation matrix (e.
g. set with set_simple_transform, or using a combination of simple translate, scale and rotate operations). If the item has a complex transformation matrix the results will be incorrect.
Parameters:
this |
an item. |
x |
returns the x coordinate of the origin of the item's coordinate space. |
y |
returns the y coordinate of the origin of the item's coordinate space. |
scale |
returns the scale of the item. |
rotation |
returns the clockwise rotation of the item, in degrees (0-360). |
Returns:
true if a transform is set. |