public bool Equals(Boundary3D other) { return(xMin == other.xMin && xMax == other.xMax && yMin == other.yMin && yMax == other.yMax && zMin == other.zMin && zMax == other.zMax); }
public static void DrawBox(Boundary3D boundary3D) { // front DrawRect(boundary3D.TopLeftFront, boundary3D.TopRightFront, boundary3D.BottomRightFront, boundary3D.BottomLeftFront); // back DrawRect(boundary3D.TopLeftBack, boundary3D.TopRightBack, boundary3D.BottomRightBack, boundary3D.BottomLeftBack); // connect front back Gizmos.DrawLine(boundary3D.TopLeftFront, boundary3D.TopLeftBack); Gizmos.DrawLine(boundary3D.TopRightFront, boundary3D.TopRightBack); Gizmos.DrawLine(boundary3D.BottomRightFront, boundary3D.BottomRightBack); Gizmos.DrawLine(boundary3D.BottomLeftFront, boundary3D.BottomLeftBack); }