Package georegression.struct.shapes
Class Box3D_I32
java.lang.Object
georegression.struct.shapes.Box3D_I32
- All Implemented Interfaces:
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:
-
Field Summary
Modifier and TypeFieldDescriptionThe lower point/extent.The upper point/extent -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
area()
The box's area.int
Length of the box along the x-axisint
Length of the box along the y-axisint
Length of the box along the z-axisvoid
setP0
(Point3D_I32 p0) void
setP1
(Point3D_I32 p1) setTo
(int x0, int y0, int z0, int x1, int y1, int z1) toString()
void
zero()
-
Field Details
-
p0
The lower point/extent. -
p1
The upper point/extent
-
-
Constructor Details
-
Box3D_I32
public Box3D_I32(int x0, int y0, int z0, int x1, int y1, int z1) -
Box3D_I32
-
Box3D_I32
public Box3D_I32()
-
-
Method Details
-
setTo
-
setTo
-
zero
public void zero() -
area
public int area()The box's area. area = lengthX*lengthY*lengthZ- Returns:
- area
-
getLengthX
public int getLengthX()Length of the box along the x-axis- Returns:
- length
-
getLengthY
public int getLengthY()Length of the box along the y-axis- Returns:
- length
-
getLengthZ
public int getLengthZ()Length of the box along the z-axis- Returns:
- length
-
setP1
-
setP0
-
toString
-