Beispiel #1
0
 internal static bool NormalsAreApproxEqual(Maths.Vector4 lhs, Maths.Vector4 rhs)
 {
     return
         (FloatsAreApproxEqual(lhs.X, rhs.X, normalElementTolerance) &&
          FloatsAreApproxEqual(lhs.Y, rhs.Y, normalElementTolerance) &&
          FloatsAreApproxEqual(lhs.Z, rhs.Z, normalElementTolerance));
 }
Beispiel #2
0
 internal static bool PositionsAreApproxEqual(Maths.Vector4 lhs, Maths.Vector4 rhs)
 {
     return
         (FloatsAreApproxEqual(lhs.X, rhs.X, positionElementTolerance) &&
          FloatsAreApproxEqual(lhs.Y, rhs.Y, positionElementTolerance) &&
          FloatsAreApproxEqual(lhs.Z, rhs.Z, positionElementTolerance));
 }