div

open operator override fun div(scale: Double): Vector2(source)

Divides the current object by the given scale factor.

Return

The result of the division as a new instance of type T.

Parameters

scale

The divisor used to scale down the current object.


operator fun div(d: Vector2): Vector2(source)