Creates a new object that contains a pair of values.

Syntax

JSV_xyValues([expX, expY])

Returns

An object that contains an x and y value.

Parameters

The JSV_xyValues function uses the following arguments.

Argument Description
expX The X, or first, value of the pair.
expY The Y, or second, value of the pair.

Remarks

If no values are passed, the x and y values are initialized to zero.

For more information on the use of JSV_xyValues, see JavaScript Vision Frequently Asked Questions.

Dependencies

n/a

Example

The following lines of code

var myXY = new JSV_xyValues();
document.write("x = " + myXY.x + " and y = " + myXY.y);
var myXY = new JSV_xyValues(580,240);
document.write("x = " + myXY.x + " and y = " + myXY.y);

produce