Beispiel #1
0
        public float EvaluateA(Equation2 nb)
        {   // x * a + y * (-nb.x * a + nb.z) = z
            float newx = x + y * -nb.x;
            float newz = z - y * nb.z;

            return(newz / newx);
        }
Beispiel #2
0
        public float EvaluateB(Equation2 na)
        {   // x * (-na.y * b + na.z) + y * b = z
            float newy = y + x * -na.y;
            float newz = z - x * na.z;

            return(newz / newy);
        }
Beispiel #3
0
 public bool Equals(Equation2 other)
 {
     return(
         Mathx.IsEqual(this.x, other.x) &&
         Mathx.IsEqual(this.y, other.y) &&
         Mathx.IsEqual(this.z, other.z)
         );
 }