coerceAtMost

open fun coerceAtMost(maximumMagnitude: Double): S(source)

Return

this vector if its magnitude is smaller than or equal to maximumMagnitude or a resized version of maximumMagnitude otherwise.