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
open String

Returns a string representation of Plane.State for debugging.

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

PlaneLabel

the PlaneLabel associated with the plane

Plane

self-reference to the object that owns this state

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

toString

open fun toString(): String

Returns a string representation of Plane.State for debugging.

Note: Not intended for production use.

Public properties

centerPose

Added in 1.0.0-beta02
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-beta02
val extentsFloatSize2d

the dimensions of the bounding box of the detected plane

label

Added in 1.0.0-beta02
val labelPlaneLabel

the PlaneLabel associated with the plane

owner

Added in 1.0.0-beta02
val ownerPlane

self-reference to the object that owns this state

subsumedBy

Added in 1.0.0-beta02
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-beta02
val verticesList<Vector2>

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