예제 #1
0
        public static NuGenBox3F operator*(NuGenBox3F b, NuGenRot3F r)
        {
            NuGenBox3F result = NuGenBox3F.Empty;

            result += b.LLL * r;
            result += b.LLU * r;
            result += b.LUL * r;
            result += b.LUU * r;
            result += b.ULL * r;
            result += b.ULU * r;
            result += b.UUL * r;
            result += b.UUU * r;
            return(result);
        }
예제 #2
0
        public static NuGenBox3F operator*(NuGenBox3F b, NuGenTrafo3F t)
        {
            NuGenBox3F result = NuGenBox3F.Empty;

            result += b.LLL * t;
            result += b.LLU * t;
            result += b.LUL * t;
            result += b.LUU * t;
            result += b.ULL * t;
            result += b.ULU * t;
            result += b.UUL * t;
            result += b.UUU * t;
            return(result);
        }
예제 #3
0
		public static bool ApproxEqual(NuGenBox3F a, NuGenBox3F b)
		{
			return
				NuGenVector.ApproxEquals(a.Lower, b.Lower) &&
				NuGenVector.ApproxEquals(a.Upper, b.Upper);
		}
예제 #4
0
        public override bool Equals(object obj)
        {
            NuGenBox3F x = (NuGenBox3F)obj;

            return(lower == x.Lower && upper == x.Upper);
        }
예제 #5
0
 public static bool ApproxEqual(NuGenBox3F a, NuGenBox3F b)
 {
     return
         (NuGenVector.ApproxEquals(a.Lower, b.Lower) &&
          NuGenVector.ApproxEquals(a.Upper, b.Upper));
 }