Class Camera

Adds geospatial capabilities to three.js cameras.

Param

the CRS of this camera

Param

the width in pixels of the camera viewport

Param

the height in pixels of the camera viewport

Param

optional values

Hierarchy

  • Camera

Constructors

  • Parameters

    • crs: string
    • width: number
    • height: number
    • options: CameraOptions = {}

    Returns Camera

Properties

_crs: string
_preSSE: number
_viewMatrix: Matrix4
camera2D: OrthographicCamera
camera3D: PerspectiveCamera
height: number
width: number

Accessors

  • get crs(): string
  • Returns string

  • get preSSE(): number
  • Returns number

  • set preSSE(value): void
  • Parameters

    • value: number

    Returns void

  • get viewMatrix(): Matrix4
  • Returns Matrix4

Methods

  • Parameters

    • box3: Box3
    • Optional matrixWorld: Matrix4

    Returns Vector3[]

  • Parameters

    • Optional width: number
    • Optional height: number

    Returns void

  • Parameters

    • box3: Box3
    • matrixWorld: Matrix4

    Returns Box3

  • Parameters

    • box3: Box3
    • matrixWorld: Matrix4

    Returns boolean

  • Parameters

    • sphere: Sphere
    • matrixWorld: Matrix4

    Returns boolean

  • Return the position in the requested CRS, or in camera's CRS if undefined.

    Parameters

    • Optional crs: string

      if defined (e.g 'EPSG:4236') the camera position will be returned in this CRS

    Returns Coordinates

    Coordinates object holding camera's position

  • Parameters

    • Optional width: number
    • Optional height: number

    Returns void

Generated using TypeDoc