set_rotation


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "0.8" ) ]
public void set_rotation (RotateAxis axis, double angle, float x, float y, float z)

Warning: set_rotation is deprecated since 1.12.

Sets the rotation angle of this around the given axis.

Note:

The rotation center coordinates used depend on the value of axis:

- X_AXIS requires y and z - Y_AXIS requires x and z - Z_AXIS requires x and y

The rotation coordinates are relative to the anchor point of the actor, set using set_anchor_point. If no anchor point is set, the upper left corner is assumed as the origin.

Parameters:

this

a Actor

axis

the axis of rotation

angle

the angle of rotation

x

X coordinate of the rotation center

y

Y coordinate of the rotation center

z

Z coordinate of the rotation center




2022 vala-language.org