point3.of

The point in space with the given coordinates.

Value helperSince 0.3.0

Usage

TypeScript
Point3.of(x: number, y: number, z: number): Point3

Parameters

  • xnumber

    The x coordinate. Required. In model.

  • ynumber

    The y coordinate. Required. In model.

  • znumber

    The z coordinate. Required. In model.

Returns

A new { x, y, z }; the coordinates are stored as given, NaN included (check with Point3.isFinite).

Example

TypeScript
Point3.of(1, 2, 3) // → { x: 1, y: 2, z: 3 }

See also