minus

operator fun minus(other: Vector2): Vector2

Subtracts another Vector2 instance from this Vector2 instance.

Return

A new Vector2 instance representing the result of subtraction.

Parameters

other

The Vector2 instance to subtract.