div

inline operator fun <T : ImmutableVector<T>> T.div(scalar: Float): T

Returns this vector scaled by (1 / scalar)


operator fun IntRange.div(divisor: Int): IntRange

Creates a range by scaling this range's start and endInclusive by the divisor.


Creates a range by scaling this range's start and endInclusive by the denominator.


operator fun Vector2.div(vector2: Vector2): Vector2

Return

a new Vector2 instance with the operation result.

Parameters

vector2

values from vector will divide vector.


operator fun Vector2.div(scalar: Float): Vector2
operator fun Vector2.div(scalar: Int): Vector2

Return

a new Vector2 instance with the operation result.

Parameters

scalar

will be used to divide both vector values.


operator fun Vector3.div(vector3: Vector3): Vector3

Return

a new Vector3 instance with the operation result.

Parameters

vector3

values from this vector will divide this vector.


operator fun Vector3.div(scalar: Float): Vector3
operator fun Vector3.div(scalar: Int): Vector3

Return

a new Vector3 instance with the operation result.

Parameters

scalar

will be used to divide all vector values.


operator fun Vector4.div(vector4: Vector4): Vector4

Return

a new vector4 instance with the operation result.

Parameters

vector4

values from this vector will divide this vector element-wise.


operator fun Vector4.div(scalar: Float): Vector4
operator fun Vector4.div(scalar: Int): Vector4

Return

a new Vector4 instance with the operation result.

Parameters

scalar

will be used to divide all vector values.