textmode.js / TextmodeVector / add
Method: add()
Call Signature
ts
add(value): this;Add components to this vector.
Missing components are treated as 0.
Parameters
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
x? | number | X component to add. |
y? | number | Y component to add. |
z? | number | Z component to add. |
Returns
this
This vector.