div

operator fun div(other: Vector2): Vector2

Divides this Vector2 instance by another Vector2 instance.

Return

A new Vector2 instance representing the result of division.

Parameters

other

The Vector2 instance to divide by.


operator fun div(scalar: Float): Vector2

Divides this Vector2 instance by a scalar.

Return

A new Vector2 instance representing the result of division.

Parameters

scalar

The scalar to divide by.