Skip to content

textmode.js / TextmodeVector / add

Method: add() ​

Call Signature ​

ts
add(value): this;

Add components to this vector.

Missing components are treated as 0.

Parameters ​

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

Returns ​

this

This vector.

Example ​

Call Signature ​

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

Add numeric components to this vector.

Parameters ​

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

Returns ​

this

This vector.

Example ​