clamp

Component-wise clamping of values, similar to [i32::clamp]. Each element in min must be less-or-equal to the corresponding element in max.

Panics

Will panic if min is greater than max when glam_assert is enabled.

Arguments

  • _self : IVec2 - No Documentation 🚧
  • min : IVec2 - No Documentation 🚧
  • max : IVec2 - No Documentation 🚧

Returns

  • arg0 : IVec2 - No Documentation 🚧