BTW, an alternative implementation which avoids the subtraction is: float Mod(float x, float y) { return frac(x / y) * y; }.
確定! 回上一頁