Package georegression.struct.shapes
Class BoxLength3D_F64
java.lang.Object
georegression.struct.shapes.BoxLength3D_F64
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptiondouble
The length of each size along their respective axesdouble
The length of each size along their respective axesdouble
The length of each size along their respective axesPoint on the box with the lowest values. -
Constructor Summary
ConstructorDescriptionBoxLength3D_F64
(double x0, double y0, double z0, double lengthX, double lengthY, double lengthZ) -
Method Summary
Modifier and TypeMethodDescriptiondouble
area()
getCorner
(int index, @Nullable Point3D_F64 corner) Used to retrieve the corners of the box.void
setP
(Point3D_F64 p) setTo
(double x0, double y0, double z0, double lengthX, double lengthY, double lengthZ) setTo
(BoxLength3D_F64 orig) toString()
void
zero()
-
Field Details
-
p
Point on the box with the lowest values. The lower extent. -
lengthX
public double lengthXThe length of each size along their respective axes -
lengthY
public double lengthYThe length of each size along their respective axes -
lengthZ
public double lengthZThe 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
-
BoxLength3D_F64
public BoxLength3D_F64()
-
-
Method Details
-
setTo
-
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
-
getCorner
Used to retrieve the corners of the box.- Parameters:
index
- A value from 0 to 7corner
- (Optional) storage for the corner. If null a new point will be declared- Returns:
- The corner.
-
toString
-