public static float getRule01() { float a = Deviation.uFL(de); burning += a; //return a * hardRight (a); return(a * hardRight(a)); }
public static float getRule06() { float uDi = Distance.uN(di); float uDe = Deviation.uFL(de); float a = Mathf.Min(uDi, uDe); float b = uDi * uDe; burning += b; return(b * medium(a)); }
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)); }
public static float getRule04() { float uTimeL = LightStatus.uG(timeL); float uDe = Deviation.uFL(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); }
public static float getRule09() { float uDi = Distance.uF(di); float uDe = Deviation.uFL(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); }
public static float getRule36() { float uTimeL = LightStatus.uLR(timeL); float uDi = Distance.uM(di); float uDe = Deviation.uFL(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); }
public static float getRule31() { float uTimeL = LightStatus.uLG(timeL); float uDi = Distance.uN(di); float uDe = Deviation.uFL(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); }