Plane.State


class Plane.State : Trackable.State


The representation of the current state of a Plane.

Summary

Public constructors

State(
    trackingState: TrackingState,
    label: Plane.Label,
    centerPose: Pose,
    extents: Vector2,
    subsumedBy: Plane?,
    vertices: List<Vector2>
)

Public functions

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

Public properties

Pose

The pose of the center of the detected plane.

Vector2

The dimensions 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 constructors

State

Added in 1.0.0-alpha01
State(
    trackingState: TrackingState,
    label: Plane.Label,
    centerPose: Pose,
    extents: Vector2,
    subsumedBy: Plane?,
    vertices: List<Vector2>
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

centerPose

Added in 1.0.0-alpha01
val centerPosePose

The pose of the center of the detected plane.

extents

Added in 1.0.0-alpha01
val extentsVector2

The dimensions of the detected plane.

label

Added in 1.0.0-alpha01
val labelPlane.Label

The Label associated with the plane.

subsumedBy

Added in 1.0.0-alpha01
val subsumedByPlane?

If this plane has been subsumed, returns the plane this plane was merged into.

trackingState

Added in 1.0.0-alpha01
open val trackingStateTrackingState

whether this plane is being tracked or not.

vertices

Added in 1.0.0-alpha01
val verticesList<Vector2>

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