vector3.of

The vector in space with the given components.

Value helperSince 0.3.0

Usage

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

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 }; components are stored as given.

Example

TypeScript
Vector3.of(0, 0, 1) // → { x: 0, y: 0, z: 1 }

See also