public static double Repeat(double t, double length) { return(t - Mathd.Floor(t / length) * length); }
public static float Repeat(float t, float length) { return(t - Mathd.Floor(t / length) * length); }