PointCloudBox

data class PointCloudBox(val center: Point3 = Point3(), val size: Point3 = Point3(), val eulerAngles: Point3 = Point3())

A class to store 3D box data including a rotation and determine if a point lies within it.

Constructors

Link copied to clipboard
constructor(center: Point3 = Point3(), size: Point3 = Point3(), eulerAngles: Point3 = Point3())
constructor(center: Point3, size: Point3, yaw: Float)
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun contains(point: Point3): Boolean

Checks if a point is inside the box.

Link copied to clipboard
fun volume(): Float

Get the volume of the box

Link copied to clipboard

Create a copy with modified center

Link copied to clipboard

Create a copy with modified size

Link copied to clipboard

Create a copy with modified yaw rotation