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 functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Pose

the Pose of the center of the detected plane's bounding box in the world coordinate space

FloatSize2d

the dimensions of the bounding box of the detected plane

Plane.Label

the Label associated with the plane

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

centerPose

Added in 1.0.0-alpha12
val centerPosePose

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

Added in 1.0.0-alpha12
val extentsFloatSize2d

the dimensions of the bounding box of the detected plane

label

Added in 1.0.0-alpha12
val labelPlane.Label

the Label associated with the plane

subsumedBy

Added in 1.0.0-alpha12
val subsumedByPlane?

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.

trackingState

open val trackingStateTrackingState

whether this plane is being tracked or not

vertices

Added in 1.0.0-alpha12
val verticesList<Vector2>

the 2D vertices of a convex polygon approximating the detected plane