Class Intersection3D_I32

java.lang.Object
georegression.metric.Intersection3D_I32

public class Intersection3D_I32 extends Object
  • Constructor Details

    • Intersection3D_I32

      public Intersection3D_I32()
  • Method Details

    • contains

      public static boolean contains(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 - Box
      point - Point which is tested to see if it is inside the box
      Returns:
      true for inside and false for not
    • contains

      public static boolean contains(Box3D_I32 boxA, Box3D_I32 boxB)
      Returns true if boxB is contained inside of or is identical to boxA.
      Parameters:
      boxA - Box
      boxB - Box which is being tested to see if it is inside of boxA
      Returns:
      true if inside/identical or false if outside
    • intersects

      public static boolean intersects(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 - Box
      boxB - Box
      Returns:
      true for intersection and false if no intersection
    • intersects

      protected static boolean intersects(int a0, int b0, int a1, int b1)