Provides information about the device's camera.

print(global.deviceInfoSystem.getTrackingCamera().principalPoint);
interface DeviceCamera {
    focalLength: vec2;
    pose: mat4;
    principalPoint: vec2;
    resolution: vec2;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    project(pointInDeviceReferenceNode: vec3): vec2;
    unproject(normalizedScreenSpacePoint: vec2, absoluteDepth: number): vec3;
}

Hierarchy (view full)

Properties

focalLength: vec2

Provides the focal length of the device's camera.

pose: mat4

Provides the transform of the camera.

principalPoint: vec2

Provides the principal point, or center of image, of the device's camera.

resolution: vec2

Provides the resolution of the image returned by the device's camera.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

  • Parameters

    • pointInDeviceReferenceNode: vec3

    Returns vec2

  • Unprojects the normalized screen space point normalizedScreenSpacePoint based on some distance absoluteDepth.

    Parameters

    • normalizedScreenSpacePoint: vec2
    • absoluteDepth: number

    Returns vec3