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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
x? | number | X component. |
y? | number | Y component. |
z? | number | Z component. |
Returns
this
This vector.