cross

infix fun cross(right: Vector2): Double

Calculates a cross product between this Vector2 and right.

Technically you cannot find the cross product of two 2D vectors but it is still possible with clever use of mathematics.

Sources

Link copied to clipboard