Class BoxLength3D_F32

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

@Generated("georegression.struct.shapes.BoxLength3D_F64") public class BoxLength3D_F32 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_F32 p
      Point on the box with the lowest values. The lower extent.
    • lengthX

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

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

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

    • BoxLength3D_F32

      public BoxLength3D_F32(float x0, float y0, float z0, float lengthX, float lengthY, float lengthZ)
    • BoxLength3D_F32

      public BoxLength3D_F32(BoxLength3D_F32 orig)
    • BoxLength3D_F32

      public BoxLength3D_F32()
  • Method Details

    • setTo

      public BoxLength3D_F32 setTo(BoxLength3D_F32 orig)
    • setTo

      public BoxLength3D_F32 setTo(float x0, float y0, float z0, float lengthX, float lengthY, float lengthZ)
    • zero

      public void zero()
    • area

      public float area()
    • setP

      public void setP(Point3D_F32 p)
    • getCorner

      public Point3D_F32 getCorner(int index, @Nullable @Nullable Point3D_F32 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