Event.GetAngle

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.

class Event
bool
GetAngle
(,
out double angle
)

Parameters

event2 Event

second GdkEvent

angle double

return location for the relative angle between both events

Return Value

Type: bool

%TRUE if the angle could be calculated.

Meta