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 model, providing that the model 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 model has a complex transformation matrix the results will be incorrect.
Parameters:
this |
an item model. |
x |
returns the x coordinate of the origin of the model's coordinate space. |
y |
returns the y coordinate of the origin of the model's coordinate space. |
scale |
returns the scale of the model. |
rotation |
returns the clockwise rotation of the model, in degrees (0-360). |
Returns:
true if a transform is set. |