UCC Reference

UI_get_distance

int UI_get_distance(object obj1, object obj2)
int obj1->get_distance(obj2)

Gets the distance between two objects.

Parameters

Parameter / value Description
obj1 One of the two objects.
obj2 The other object.

Return

The distance between the two objects, or zero if one or both of the parameters is not a valid object.

Related intrinsics

Full intrinsic reference | Reference definitions