coerceAtMost

open fun coerceAtMost(maximumMagnitude: Double): S

Return

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