Skip to content

textmode.js / TextmodeVector / set

Method: set() ​

Call Signature ​

ts
set(value): this;

Set this vector's components.

Passing another vector-like object or array copies its components. Missing components are reset to 0.

Parameters ​

ParameterTypeDescription
value| readonly number[] | | TextmodeVector | { x: number; y: number; z?: number; }Vector-like value or component array to copy.

Returns ​

this

This vector.

Example ​

Call Signature ​

ts
set(
   x?, 
   y?, 
   z?): this;

Set this vector's components from numbers.

Parameters ​

ParameterTypeDescription
x?numberX component.
y?numberY component.
z?numberZ component.

Returns ​

this

This vector.

Example ​