vexi.ui.Box.distanceto - DistanceTo Object

The DistanceTo Object, returned via the Box.distanceto(Box) function, is mostly immutable - that is you may not modify or add properties to this object, with the exception of the properties 'from' and 'to'. However traps can be placed upon the object's properties.

Note that every time you use the Box.distanceto(Box) function, it creates a different object.

Properties

Property Type Description

from

Box

The originating box.

to

Box

The target box.

x
y

Number

Read only properties representing the distance at any given moment between the target box's (0,0) coordinate and the originating box's (0,0) coordinate.

The value of these properties changes without any notification, thus write traps placed upon them will not be fired.

 


Copyright © 2011 The Vexi Project (vexi.sourceforge.net)