chickadee » kd-tree » compare-distance

compare-distanceprocedure

(compare-distance space origin p1 p2) compares the squared distance of p1 from origin to the squared distance of p2 from origin, returning a negative, zero, or positive number accordingly. As with squared-distance, each POINT argument may be either a point index or a coordinate list.