Package georegression.metric
Class Intersection3D_I32
java.lang.Object
georegression.metric.Intersection3D_I32
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(Box3D_I32 box, Point3D_I32 point) Returns true if the point is contained inside the box.static boolean
Returns true if boxB is contained inside of or is identical to boxA.protected static boolean
intersects
(int a0, int b0, int a1, int b1) static boolean
intersects
(Box3D_I32 boxA, Box3D_I32 boxB) Returns true if the two boxes intersect each other.
-
Constructor Details
-
Intersection3D_I32
public Intersection3D_I32()
-
-
Method Details
-
contains
Returns true if the point is contained inside the box. The point is considered to be inside the box if the following test passes for each dimension. box.p0.x ≤ point.x<
box.p1.x + box.lengthX- Parameters:
box
- Boxpoint
- Point which is tested to see if it is inside the box- Returns:
- true for inside and false for not
-
contains
Returns true if boxB is contained inside of or is identical to boxA.- Parameters:
boxA
- BoxboxB
- Box which is being tested to see if it is inside of boxA- Returns:
- true if inside/identical or false if outside
-
intersects
Returns true if the two boxes intersect each other. p0 is inclusive and p1 is exclusive. So if the p0 edge and p1 edge overlap perfectly there is no intersection.- Parameters:
boxA
- BoxboxB
- Box- Returns:
- true for intersection and false if no intersection
-
intersects
protected static boolean intersects(int a0, int b0, int a1, int b1)
-