MCPcopy Create free account
hub / github.com/PerroEngine/Perro / clamp

Method clamp

perro_source/core/perro_structs/src/structs/structs_3d/vector3.rs:188–194  ·  view source on GitHub ↗
(self, min: Self, max: Self)

Source from the content-addressed store, hash-verified

186 /// Component-wise clamp.
187 #[inline]
188 pub fn clamp(self, min: Self, max: Self) -> Self {
189 Self::new(
190 self.x.clamp(min.x, max.x),
191 self.y.clamp(min.y, max.y),
192 self.z.clamp(min.z, max.z),
193 )
194 }
195
196 /// Returns a negated copy.
197 #[inline]

Callers 15

update_freecamFunction · 0.45
update_freecam_2dFunction · 0.45
apply_viewport_canvasFunction · 0.45
matrix_type_infoFunction · 0.45
clamp_unitFunction · 0.45
eval_ops_particleFunction · 0.45
ease_sampleFunction · 0.45
contains_roundedMethod · 0.45
clamp_sizeMethod · 0.45
clamp_scaleMethod · 0.45

Calls

no outgoing calls

Tested by 2

matrix_type_infoFunction · 0.36
clamp_unitFunction · 0.36