GuavaScenePose
public final class GuavaScenePose
Summary
Public methods |
|
|---|---|
static final @NonNull ListenableFuture<HitTestResult> |
hitTestAsync(Creates a |
static final @NonNull ListenableFuture<HitTestResult> |
hitTestAsync(Creates a |
Public methods
hitTestAsync
public static final @NonNull ListenableFuture<HitTestResult> hitTestAsync(
@NonNull ScenePose receiver,
@NonNull Session session,
@NonNull Vector3 origin,
@NonNull Vector3 direction
)
Creates a HitTestResult from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Session session |
The session the |
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin. |
| Returns | |
|---|---|
@NonNull ListenableFuture<HitTestResult> |
a Future containing the |
hitTestAsync
public static final @NonNull ListenableFuture<HitTestResult> hitTestAsync(
@NonNull ScenePose receiver,
@NonNull Session session,
@NonNull Vector3 origin,
@NonNull Vector3 direction,
int hitTestFilter
)
Creates a HitTestResult from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Session session |
The session the |
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin |
int hitTestFilter |
Filter for which scenes to hit test. Hitting other scenes is only allowed for apps with the |
| Returns | |
|---|---|
@NonNull ListenableFuture<HitTestResult> |
a Future containing the |