Skip to content

Documentation / Vec2 / dot

dot() ​

ts
function dot(v1, v2): number;

Defined in: Utils/vec2.ts:149

Calculates the dot product of two vectors.

Parameters ​

v1 ​

Vec2

v2 ​

Vec2

Returns ​

number

A scalar.