Closed Xkonti closed 1 year ago
This operation clamps vector's length between specified values. This will basically scale the vector up or down in case it's length is too great or too little. Integer vectors will be converted into a float64 variant.
float64
vec1.ClampLen(min, max)
This operation clamps vector's length between specified values. This will basically scale the vector up or down in case it's length is too great or too little. Integer vectors will be converted into a
float64
variant.vec1.ClampLen(min, max)