private static double _MoveIntoRange(double temp3) { if (temp3 < 0.0f) temp3 += 1.0f; else if (temp3 > 1.0f) temp3 -= 1.0f; return temp3; } }