Skip to content

aninest root / Vec2 / cross

cross()

ts
function cross(v1, v2): number

Calculates the cross product of two vectors.

Parameters

v1: Vec2

v2: Vec2

Returns

number

A scalar.

Defined in

Utils/vec2.ts:156