Plane.State


public final class Plane.State implements Trackable.State


The representation of the current state of a Plane.

Summary

Public constructors

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

Public methods

boolean
equals(Object other)
final @NonNull Pose

The pose of the center of the detected plane.

final @NonNull Vector2

The dimensions of the detected plane.

final @NonNull Plane.Label

The Label associated with the plane.

final Plane

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

@NonNull TrackingState

whether this plane is being tracked or not.

final @NonNull List<@NonNull Vector2>

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

int

Public constructors

State

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

Public methods

equals

public boolean equals(Object other)

getCenterPose

Added in 1.0.0-alpha01
public final @NonNull Pose getCenterPose()

The pose of the center of the detected plane.

getExtents

Added in 1.0.0-alpha01
public final @NonNull Vector2 getExtents()

The dimensions of the detected plane.

getLabel

Added in 1.0.0-alpha01
public final @NonNull Plane.Label getLabel()

The Label associated with the plane.

getSubsumedBy

Added in 1.0.0-alpha01
public final Plane getSubsumedBy()

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

getTrackingState

Added in 1.0.0-alpha01
public @NonNull TrackingState getTrackingState()

whether this plane is being tracked or not.

getVertices

Added in 1.0.0-alpha01
public final @NonNull List<@NonNull Vector2getVertices()

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

hashCode

public int hashCode()