-
public final class PointCloudBoxA class to store 3D box data including a rotation and determine if a point lies within it.
-
-
Constructor Summary
Constructors Constructor Description PointCloudBox(Point3 center, Point3 size, Float yaw)PointCloudBox()PointCloudBox(Point3 center, Point3 size, Point3 eulerAngles)
-
Method Summary
Modifier and Type Method Description final Point3getCenter()final Point3getSize()final Point3getEulerAngles()final Booleancontains(Point3 point)Checks if a point is inside the box. final Floatvolume()Get the volume of the box final PointCloudBoxwithCenter(Point3 newCenter)Create a copy with modified center final PointCloudBoxwithSize(Point3 newSize)Create a copy with modified size final PointCloudBoxwithYaw(Float yaw)Create a copy with modified yaw rotation -
-
Method Detail
-
getEulerAngles
final Point3 getEulerAngles()
-
contains
final Boolean contains(Point3 point)
Checks if a point is inside the box.
- Parameters:
point- The 3D point to test
-
withCenter
final PointCloudBox withCenter(Point3 newCenter)
Create a copy with modified center
-
withSize
final PointCloudBox withSize(Point3 newSize)
Create a copy with modified size
-
withYaw
final PointCloudBox withYaw(Float yaw)
Create a copy with modified yaw rotation
-
-
-
-