div

open operator fun div(divisor: Double): Vec2

Creates new vector containing this vector divided by a scalar.

Return

new vector containing this vector divided by a scalar

Parameters

divisor

the scalar to divide this vector by