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); }
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); }
public override bool Equals(object obj) { NuGenBox3D x = (NuGenBox3D)obj; return(lower == x.Lower && upper == x.Upper); }
public static bool ApproxEqual(NuGenBox3D a, NuGenBox3D b) { return (NuGenVector.ApproxEquals(a.Lower, b.Lower) && NuGenVector.ApproxEquals(a.Upper, b.Upper)); }
public bool IsOnBorder(NuGenBox3D b) { return(IsInsideOrOnBorder(b) && !IsInside(b)); }
public bool IsInsideOrOnBorder(NuGenBox3D b) { return(lower <= b.lower && upper >= b.upper); }
public bool IsInside(NuGenBox3D b) { return(lower < b.lower && upper > b.upper); }