Ejemplo n.º 1
0
        public bool FuzzyEquals(FlightPoint other)
        {
            if (other == Vector3.Zero)
            {
                return(false);
            }

            return(other.Location.Distance3D(Location) < 0.8f ||
                   (Math.Abs(other.Location.X - Location.X) < float.Epsilon &&
                    Math.Abs(other.Location.Z - Location.Z) < float.Epsilon));
        }
Ejemplo n.º 2
0
		public bool FuzzyEquals(FlightPoint other)
		{
			if (other == Vector3.Zero)
			{
				return false;
			}

			return other.Location.Distance3D(Location) < 0.8f
			       || (Math.Abs(other.Location.X - Location.X) < float.Epsilon
			           && Math.Abs(other.Location.Z - Location.Z) < float.Epsilon);
		}