georegression.metric
Class Intersection3D_I32
- java.lang.Object
-
- georegression.metric.Intersection3D_I32
-
public class Intersection3D_I32 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Intersection3D_I32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleancontained(Box3D_I32 boxA, Box3D_I32 boxB)Returns true if boxB is contained inside of or is identical to boxA.static booleancontained(Box3D_I32 box, Point3D_I32 point)Returns true if the point is contained inside the box.static booleanintersect(Box3D_I32 boxA, Box3D_I32 boxB)Returns true if the two boxes intersect each other.
-
-
-
Method Detail
-
contained
public static boolean contained(Box3D_I32 box, Point3D_I32 point)
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
-
contained
public static boolean contained(Box3D_I32 boxA, Box3D_I32 boxB)
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
-
intersect
public static boolean intersect(Box3D_I32 boxA, Box3D_I32 boxB)
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG