clampLength

fun clampLength(min: Double, max: Double): Vector3

Clamps this vector's length into [min, max].

Return

A reference to this vector.

Parameters

min

The minimum value the vector length will be clamped to.

max

The maximum value the vector length will be clamped to.