mxPoint

Implements a 2-dimensional point with double precision coordinates.

Summary
mxPointImplements a 2-dimensional point with double precision coordinates.
Variables
xHolds the x-coordinate of the point.
yHolds the y-coordinate of the point.
Functions
mxPointConstructs a new point for the optional x and y coordinates.
equalsReturns true if the given object equals this point.
copyReturns a copy of this mxPoint.

Variables

x

var $x

Holds the x-coordinate of the point.  Default is 0.

y

var $y

Holds the y-coordinate of the point.  Default is 0.

Functions

mxPoint

function mxPoint($x =  0,
$y =  0)

Constructs a new point for the optional x and y coordinates.  If no coordinates are given, then the default values for x and y are used.

equals

function equals($obj)

Returns true if the given object equals this point.

copy

function copy()

Returns a copy of this mxPoint.

var $x
Holds the x-coordinate of the point.
var $y
Holds the y-coordinate of the point.
function mxPoint($x =  0,
$y =  0)
Constructs a new point for the optional x and y coordinates.
function equals($obj)
Returns true if the given object equals this point.
function copy()
Returns a copy of this mxPoint.
Close