예제 #1
0
    public static float getRule05()
    {
        float a = Deviation.uFR(de);

        burning += a;
        //	return a * (a);
        return(a * hardLeft(a));
    }
예제 #2
0
    public static float getRule10()
    {
        float uDi = Distance.uN(di);
        float uDe = Deviation.uFR(de);
        float a   = Mathf.Min(uDi, uDe);
        float b   = uDi * uDe;

        burning += b;
        return(b * slower(a));
    }
예제 #3
0
    public static float getRule05()
    {
        float uDe = Deviation.uFL(de);
        float uDi = Distance.uN(di);
        float uDf = Deviation.uFR(df);
        float a   = Mathf.Min(uDe, Mathf.Min(uDi, uDf));
        float b   = uDe * uDi * uDf;

        burning += b;
        return(b * Steerage.hardRight(a));
    }
예제 #4
0
    public static float getRule10()
    {
        float uDi = Distance.uF(di);
        float uDe = Deviation.uFR(de);
        float b   = uDi * uDe;
        float a   = Mathf.Min(uDi, uDe);
        float r1  = (a + 0.11f) / 4.44f;
        float r2  = (2f - a) / 4f;

        sumBurning += b;
        return(b * (r1 + r2) / 2f);
    }
예제 #5
0
    public static float getRule05()
    {
        float uTimeL = LightStatus.uG(timeL);
        float uDe    = Deviation.uFR(de);
        float b      = uTimeL * uDe;
        float a      = Mathf.Min(uTimeL, uDe);
        float r1     = (a + 0.11f) / 4.44f;
        float r2     = (2f - a) / 4f;

        sumBurning += b;
        return(b * (r1 + r2) / 2f);
    }
예제 #6
0
    public static float getRule37()
    {
        float uTimeL = LightStatus.uLR(timeL);
        float uDi    = Distance.uM(di);
        float uDe    = Deviation.uFR(de);
        float b      = uTimeL * uDi * uDe;
        float a      = Mathf.Min(uTimeL, Mathf.Min(uDi, uDe));
        float r1     = (0.11f + a) / 4.44f;
        float r2     = (2f - a) / 4f;

        sumBurning += b;
        return(b * (r1 + r2) / 2f);
    }
예제 #7
0
    public static float getRule32()
    {
        float uTimeL = LightStatus.uLG(timeL);
        float uDi    = Distance.uN(di);
        float uDe    = Deviation.uFR(de);
        float b      = uTimeL * uDi * uDe;
        float a      = Mathf.Min(uTimeL, Mathf.Min(uDi, uDe));
        float r1     = 0f;
        float r2     = (1f - a) / 20f;

        sumBurning += b;
        return(b * (r1 + r2) / 2f);
    }