Package georegression.struct.shapes
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 Summary
Modifier and TypeFieldDescriptionfloat
The length of each size along their respective axesfloat
The length of each size along their respective axesfloat
The length of each size along their respective axesPoint on the box with the lowest values. -
Constructor Summary
ConstructorDescriptionBoxLength3D_F32
(float x0, float y0, float z0, float lengthX, float lengthY, float lengthZ) -
Method Summary
Modifier and TypeMethodDescriptionfloat
area()
getCorner
(int index, @Nullable Point3D_F32 corner) Used to retrieve the corners of the box.void
setP
(Point3D_F32 p) setTo
(float x0, float y0, float z0, float lengthX, float lengthY, float lengthZ) setTo
(BoxLength3D_F32 orig) toString()
void
zero()
-
Field Details
-
p
Point on the box with the lowest values. The lower extent. -
lengthX
public float lengthXThe length of each size along their respective axes -
lengthY
public float lengthYThe length of each size along their respective axes -
lengthZ
public float lengthZThe 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
-
BoxLength3D_F32
public BoxLength3D_F32()
-
-
Method Details
-
setTo
-
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
-
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
-