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

Function repeat

perro_source/api_modules/perro_modules/src/math.rs:263–268  ·  view source on GitHub ↗
(value: f32, length: f32)

Source from the content-addressed store, hash-verified

261
262#[inline]
263pub fn repeat(value: f32, length: f32) -> f32 {
264 if length <= 0.0 {
265 return 0.0;
266 }
267 value.rem_euclid(length)
268}
269
270#[inline]
271pub fn ping_pong(value: f32, length: f32) -> f32 {

Callers 2

ping_pongFunction · 0.85

Calls

no outgoing calls

Tested by 1