public final class CameraView extends BaseScenePose


An ScenePose which tracks a camera view's position and view into physical space.

Summary

Nested types

public enum CameraView.CameraType extends Enum

Describes the type of camera that this CameraView represents.

Public methods

final @NonNull CameraView.CameraType
final @NonNull FieldOfView

Gets the FOV for the camera.

Inherited methods

From androidx.xr.scenecore.BaseScenePose
@NonNull Pose

The current Pose relative to the activity space root.

@NonNull HitTestResult
hitTest(@NonNull Vector3 origin, @NonNull Vector3 direction)

Creates a hit test from the specified origin in the specified direction into the Scene.

@NonNull HitTestResult
hitTest(
    @NonNull Vector3 origin,
    @NonNull Vector3 direction,
    int hitTestFilter
)

Creates a hit test from the specified origin in the specified direction into the scene.

@NonNull Pose
transformPoseTo(@NonNull Pose pose, @NonNull ScenePose destination)

Returns a Pose relative to this ScenePose, transformed into a Pose relative to the destination.

Public methods

getCameraType

Added in 1.0.0-alpha06
public final @NonNull CameraView.CameraType getCameraType()

getFov

Added in 1.0.0-alpha06
public final @NonNull FieldOfView getFov()

Gets the FOV for the camera.