Plane.State
class Plane.State : Trackable.State
The representation of the current state of a Plane. A Plane is represented as a finite polygon with an arbitrary amount of vertices around a centerPose.
Summary
Public properties |
|
|---|---|
Pose |
The |
FloatSize2d |
The dimensions of the bounding box of the detected plane. |
Plane.Label |
The |
Plane? |
If this plane has been subsumed, returns the plane this plane was merged into. |
open TrackingState |
whether this plane is being tracked or not. |
List<Vector2> |
The 2D vertices of a convex polygon approximating the detected plane, relative to its |
Public functions
Public properties
centerPose
val centerPose: Pose
The Pose of the center of the detected plane's bounding box in the world coordinate space. The +Y axis relative to the centerPose is equivalent to the normal of the Plane.
extents
val extents: FloatSize2d
The dimensions of the bounding box of the detected plane.
subsumedBy
val subsumedBy: Plane?
If this plane has been subsumed, returns the plane this plane was merged into. If the subsuming plane is also subsumed by another plane, this plane will continue to be subsumed by the former.
vertices
val vertices: List<Vector2>
The 2D vertices of a convex polygon approximating the detected plane, relative to its centerPose in the X and Z axes.