Class Box3D_I32

java.lang.Object
georegression.struct.shapes.Box3D_I32
All Implemented Interfaces:
Serializable

public class Box3D_I32 extends Object implements Serializable
An axis aligned box in 3D that is specified by two points, p0 and p1, the lower and upper extents of the box. Point p0 is less or equal to point p1, 0.x ≤ p1.x, p0.y ≤ p1.y, p0.z ≤ p1.z.
See Also:
  • Field Details

  • Constructor Details

    • Box3D_I32

      public Box3D_I32(int x0, int y0, int z0, int x1, int y1, int z1)
    • Box3D_I32

      public Box3D_I32(Box3D_I32 orig)
    • Box3D_I32

      public Box3D_I32()
  • Method Details

    • setTo

      public Box3D_I32 setTo(Box3D_I32 orig)
    • setTo

      public Box3D_I32 setTo(int x0, int y0, int z0, int x1, int y1, int z1)
    • zero

      public void zero()
    • area

      public int area()
      The box's area. area = lengthX*lengthY*lengthZ
      Returns:
      area
    • getLengthX

      public int getLengthX()
      Length of the box along the x-axis
      Returns:
      length
    • getLengthY

      public int getLengthY()
      Length of the box along the y-axis
      Returns:
      length
    • getLengthZ

      public int getLengthZ()
      Length of the box along the z-axis
      Returns:
      length
    • setP1

      public void setP1(Point3D_I32 p1)
    • setP0

      public void setP0(Point3D_I32 p0)
    • toString

      public String toString()
      Overrides:
      toString in class Object