BehaviourEllipse


Description:

[ CCode ( has_construct_function = false , type = "ClutterBehaviour*" ) ]
public BehaviourEllipse (Alpha? alpha, int x, int y, int width, int height, RotateDirection direction, double start, double end)

Creates a behaviour that drives actors along an elliptical path with given center, width and height; the movement starts at start degrees (with 0 corresponding to 12 o'clock) and ends at end degrees.

Angles greated than 360 degrees get clamped to the canonical interval <0, 360); if start is equal to end, the behaviour will rotate by exacly 360 degrees.

If alpha is not null, the Behaviour will take ownership of the Alpha instance. In the case when alpha is null, it can be set later with set_alpha.

Parameters:

alpha

a Alpha instance, or null

x

x coordinace of the center

y

y coordiance of the center

width

width of the ellipse

height

height of the ellipse

direction

RotateDirection of rotation

start

angle in degrees at which movement starts, between 0 and 360

end

angle in degrees at which movement ends, between 0 and 360

Returns:

the newly created BehaviourEllipse