Description

Provides information about the device's camera.

Example

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

Hierarchy (view full)

Properties

focalLength: vec2

Description

Provides the focal length of the device's camera.

pose: mat4

Description

Provides the transform of the camera.

principalPoint: vec2

Description

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

resolution: vec2

Description

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

Methods

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

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

  • Parameters

    • normalizedScreenSpacePoint: vec2
    • absoluteDepth: number

    Returns vec3

    Description

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

Generated using TypeDoc