Documentation of 'georegression.struct.shapes.Box3D_F32' Java class
Box3D_F32
georegression.struct.shapes

Class Box3D_F32

  • All Implemented Interfaces:
    java.io.Serializable


    public class Box3D_F32
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Detail

      • Box3D_F32

        public Box3D_F32(float x0,
                         float y0,
                         float z0,
                         float x1,
                         float y1,
                         float z1)
      • Box3D_F32

        public Box3D_F32(Box3D_F32 orig)
      • Box3D_F32

        public Box3D_F32()
    • Method Detail

      • set

        public void set(float x0,
                        float y0,
                        float z0,
                        float x1,
                        float y1,
                        float z1)
      • area

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

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

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

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

        public Point3D_F32 getP0()
        Returns the lower point/extend
      • getP1

        public Point3D_F32 getP1()
        Returns the upper point/extend
      • center

        public Point3D_F32 center(Point3D_F32 storage)
        Computes and return the center of the cube.
        Parameters:
        storage - Optional storage for the center. If null a new instance will be created and returned.
        Returns:
        The cube's center point
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.