Beispiel #1
0
    public static void Ratio(ref float _outA, ref float _outB, float _a, float _b)
    {
        float num = KK_Lib.GCD(_a, _b);

        _outA = _a / num;
        _outB = _b / num;
    }
Beispiel #2
0
 public static float LCM(float _a, float _b)
 {
     return((double)_a == 0.0 || (double)_b == 0.0 ? 0.0f : _a / KK_Lib.GCD(_a, _b) * _b);
 }