Example #1
0
        public static NuGenBox2F operator*(NuGenBox2F b, NuGenTrafo2F t)
        {
            NuGenBox2F result = NuGenBox2F.Empty;

            result += b.LL * t;
            result += b.LU * t;
            result += b.UL * t;
            result += b.UU * t;
            return(result);
        }
Example #2
0
 public static bool ApproxEqual(NuGenBox2F a, NuGenBox2F b)
 {
     return
         (NuGenVector.ApproxEquals(a.Lower, b.Lower) &&
          NuGenVector.ApproxEquals(a.Upper, b.Upper));
 }
Example #3
0
        public override bool Equals(object obj)
        {
            NuGenBox2F x = (NuGenBox2F)obj;

            return(lower == x.Lower && upper == x.Upper);
        }
Example #4
0
 public bool IsInsideOrOnBorder(NuGenBox2F b)
 {
     return(lower <= b.lower && upper >= b.upper);
 }
Example #5
0
 public bool IsOnBorder(NuGenBox2F b)
 {
     return(IsInsideOrOnBorder(b) && !IsInside(b));
 }
Example #6
0
 public bool IsInside(NuGenBox2F b)
 {
     return(lower < b.lower && upper > b.upper);
 }
Example #7
0
		public static bool ApproxEqual(NuGenBox2F a, NuGenBox2F b)
		{
			return
				NuGenVector.ApproxEquals(a.Lower, b.Lower) &&
				NuGenVector.ApproxEquals(a.Upper, b.Upper);
		}
Example #8
0
		public bool IsOnBorder(NuGenBox2F b)
		{
			return IsInsideOrOnBorder(b) && !IsInside(b);
		}
Example #9
0
		public bool IsInsideOrOnBorder(NuGenBox2F b)
		{
			return lower <= b.lower && upper >= b.upper;
		}
Example #10
0
		public bool IsInside(NuGenBox2F b)
		{
			return lower < b.lower && upper > b.upper;
		}