point3.toArray

The point as an [x, y, z] tuple, the layout the WASM exports take.

Value helperSince 0.3.0

Usage

TypeScript
Point3.toArray(p: Point3): [number, number, number]

Parameters

  • pPoint3

    The point to convert. Required. In model.

Returns

A new three-element array [x, y, z], values unchanged.

Example

TypeScript
Point3.toArray(Point3.of(1, 2, 3)) // → [1, 2, 3]

See also