Class BoxLength3D_F64

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

public class BoxLength3D_F64 extends Object implements Serializable
An axis aligned box in 3D that is specified by a point p=(x0,y0,z0), and its lengthX, lengthY, and lengthZ. The point 'p' has the lowest values and is also known as the lower extent.. The corner which is farthest away from 'p' is (x0+lengthX , y0+lengthY, z0+lengthZ), the upper extent.
See Also:
  • Field Details

    • p

      public Point3D_F64 p
      Point on the box with the lowest values. The lower extent.
    • lengthX

      public double lengthX
      The length of each size along their respective axes
    • lengthY

      public double lengthY
      The length of each size along their respective axes
    • lengthZ

      public double lengthZ
      The length of each size along their respective axes
  • Constructor Details

    • BoxLength3D_F64

      public BoxLength3D_F64(double x0, double y0, double z0, double lengthX, double lengthY, double lengthZ)
    • BoxLength3D_F64

      public BoxLength3D_F64(BoxLength3D_F64 orig)
    • BoxLength3D_F64

      public BoxLength3D_F64()
  • Method Details

    • setTo

      public BoxLength3D_F64 setTo(BoxLength3D_F64 orig)
    • setTo

      public BoxLength3D_F64 setTo(double x0, double y0, double z0, double lengthX, double lengthY, double lengthZ)
    • zero

      public void zero()
    • area

      public double area()
    • setP

      public void setP(Point3D_F64 p)
    • getCorner

      public Point3D_F64 getCorner(int index, @Nullable @Nullable Point3D_F64 corner)
      Used to retrieve the corners of the box.
      Parameters:
      index - A value from 0 to 7
      corner - (Optional) storage for the corner. If null a new point will be declared
      Returns:
      The corner.
    • toString

      public String toString()
      Overrides:
      toString in class Object