The distance and angle expressions are meant to accept a two-parameter overload with a two-element array {x,y} defining each coordinate so distance(obj1.xy, obj2.xy) would work (as would distance({0,0}, {10,12}), but something seems broken there. It's a slightly quicker way of typing object distances.