point2.of
The plane point with the given coordinates.
Usage
Point2.of(x: number, y: number): Point2Parameters
xnumberThe x coordinate. Required. In model.
ynumberThe y coordinate. Required. In model.
Returns
A new { x, y }; the coordinates are stored as given, NaN included (check with Point2.isFinite).
Example
Point2.of(3, 4) // → { x: 3, y: 4 }