get_distance


Description:

[ CCode ( cname = "gdk_events_get_distance" ) ]
public static bool get_distance (Event event1, Event event2, out double distance)

If both events have X/Y information, the distance between both coordinates (as in a straight line going from event1 to event2) will be returned.

Parameters:

event1

first Event

event2

second Event

distance

return location for the distance

Returns:

true if the distance could be calculated.