[ CCode ( cname = "gdk_events_get_angle" ) ]
public bool get_angle (Event event2, out double angle)
Returns the relative angle from event1
to event2
.
The relative angle is the angle between the X axis and the line through both events' positions. The rotation direction for positive angles is from the positive X axis towards the positive Y axis.
This assumes that both events have X/Y information. If not, this function returns false.
event2 |
second `GdkEvent` |
angle |
return location for the relative angle between both events |
event1 |
first `GdkEvent` |
true if the angle could be calculated. |