fromElements
Creates a Cartesian2 instance from x and y coordinates.
Return
The modified result parameter or a new Cartesian2 instance if one was not provided.
Parameters
x
The x coordinate.
y
The y coordinate.
result
The object onto which to store the result.