@svizzle/geometry/3D

Methods

(static) makePosition3D(pointArray) → {object}

Source:
Since:
  • 0.1.0

Creates a position object from an array of 3 numbers

Example
> makePosition3D([1, 2, 3])
{x: 1, y: 2, z: 3}
Parameters:
Name Type Description
pointArray array

An array of 3 numbers

Returns:
  • An object with {x, y, z} coordinates.
Type
object