Creates a new object that contains a pair of values.
JSV_xyValues([expX, expY])
An object that contains an x and y value.
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. |
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.
n/a
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
Copyright © 2000 Roaring Fork Software. All rights reserved.