Example #1
0
        public static NuGenBox3D operator*(NuGenBox3D b, NuGenTrafo3D t)
        {
            NuGenBox3D result = NuGenBox3D.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);
        }
Example #2
0
        public static NuGenBox3D operator*(NuGenBox3D b, NuGenRot3D r)
        {
            NuGenBox3D result = NuGenBox3D.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);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            NuGenBox3D x = (NuGenBox3D)obj;

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