Skip to content

textmode.js / TextmodeVector / dot

Method: dot()

Call Signature

ts
dot(value): number;

Calculate the dot product with another vector-like value.

Parameters

ParameterTypeDescription
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

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

Returns

number

Dot product.

Example