textmode.js / TextmodeVector / dot
Method: dot()
Call Signature
ts
dot(value): number;Calculate the dot product with another vector-like value.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | | readonly number[] | | TextmodeVector | { x: number; y: number; z?: number; } | Vector-like value or component array. |
Returns
number
Dot product.
Example
Call Signature
ts
dot(
x?,
y?,
z?): number;Calculate the dot product with numeric components.
Parameters
| Parameter | Type | Description |
|---|---|---|
x? | number | X component. |
y? | number | Y component. |
z? | number | Z component. |
Returns
number
Dot product.