public final class Plane implements Trackable


Describes the system's current best knowledge of a real-world planar surface.

Summary

Nested types

public final class Plane.Label

A semantic description of a Plane.

public final class Plane.State implements Trackable.State

The representation of the current state of a Plane.

public final class Plane.Type

A simple summary of the normal vector of a Plane.

Public methods

@NonNull Anchor

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

@NonNull StateFlow<@NonNull Plane.State>

The current state of the Plane.

final @NonNull Plane.Type

The Type of the Plane.

static final @NonNull StateFlow<@NonNull Collection<@NonNull Plane>>

Emits the planes that are currently being tracked in the session.

void

Updates the state of the Updatable.

Public methods

createAnchor

Added in 1.0.0-alpha01
public @NonNull Anchor createAnchor(@NonNull Pose pose)

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

getState

Added in 1.0.0-alpha01
public @NonNull StateFlow<@NonNull Plane.StategetState()

The current state of the Plane.

getType

Added in 1.0.0-alpha01
public final @NonNull Plane.Type getType()

The Type of the Plane.

subscribe

Added in 1.0.0-alpha01
public static final @NonNull StateFlow<@NonNull Collection<@NonNull Plane>> subscribe(@NonNull Session session)

Emits the planes that are currently being tracked in the session.

update

Added in 1.0.0-alpha01
public void update()

Updates the state of the Updatable.