API Vector2DMixin Dot

Computes the dot product of one vector with another or itself. vector:Dot(other) vector:GetLengthSquared

Arguments

 * other : - A Vector2DMixin or Vector3DMixin (must be the same kind as the original vector).

Details

 * GetLengthSquared is equivalent to, resulting in the sum of the squares of its coordinates.

Example
local vector = CreateVector2D(3, 4) print vector:GetLengthSquared      -- 25