Package: gdk

Function gdk:events-angle

Lambda List

gdk:events-angle (event1 event2)

Arguments

event1 -- a gdk:event instance
event2 -- a gdk:event instance

Return Value

The double float for the relative angle between both events.

Details

Returns the relative angle from event1 to event2. The relative angle is the angle between the X axis and the line through both positions of the events. 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.

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

See also

#2025-09-26