Plane.State
public final class Plane.State implements 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 methods |
|
|---|---|
boolean |
|
final @NonNull Pose |
the |
final @NonNull FloatSize2d |
the dimensions of the bounding box of the detected plane |
final @NonNull PlaneLabel |
getLabel()the |
final @NonNull Plane |
getOwner()self-reference to the object that owns this state. |
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 |
hashCode() |
Public methods
getCenterPose
public final @NonNull Pose getCenterPose()
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.
getExtents
public final @NonNull FloatSize2d getExtents()
the dimensions of the bounding box of the detected plane
getLabel
public final @NonNull PlaneLabel getLabel()
the PlaneLabel associated with the plane
getOwner
public final @NonNull Plane getOwner()
self-reference to the object that owns this state.
getSubsumedBy
public final Plane getSubsumedBy()
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.
getTrackingState
public @NonNull TrackingState getTrackingState()
whether this plane is being tracked or not
getVertices
public final @NonNull List<@NonNull Vector2> getVertices()
the 2D vertices of a convex polygon approximating the detected plane