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

Method abs

perro_source/core/perro_structs/src/structs/structs_3d/ivector3.rs:121–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 /// Component-wise absolute value, saturating `i32::MIN` to `i32::MAX`.
120 #[inline]
121 pub fn abs(self) -> Self {
122 Self::new(
123 self.x.saturating_abs(),
124 self.y.saturating_abs(),
125 self.z.saturating_abs(),
126 )
127 }
128
129 /// Component-wise sign (-1, 0, or 1).
130 #[inline]

Callers 15

ray_ground_pointFunction · 0.45
viewport_pointerFunction · 0.45
collision_shape_meshFunction · 0.45
draw_collision_shape_2dFunction · 0.45
pick_resize_handleFunction · 0.45
pick_rotation_zoneFunction · 0.45
viewport_spawn_3dFunction · 0.45
eval_ops_particleFunction · 0.45
project_uvFunction · 0.45

Calls

no outgoing calls