get_angle


Description:

[ CCode ( cname = "gdk_events_get_angle" ) ]
public static bool get_angle (Event event1, Event event2, out double angle)

If both events contain X/Y information, this function will return true and return in angle the relative angle from event1 to event2.

The rotation direction for positive angles is from the positive X axis towards the positive Y axis.

Parameters:

event1

first Event

event2

second Event

angle

return location for the relative angle between both events

Returns:

true if the angle could be calculated.