Five 相机

Hierarchy

  • Camera
    • Camera

Constructors

  • Parameters

    • fov: number
    • aspect: number = DEFAULT_ASPECT
    • near: number = DEFAULT_NEAR
    • far: number = DEFAULT_FAR
    • perspToOrtho: Vector2 = ...
    • resolution: Vector2 = ...
    • pixelRatio: number = 1

    Returns Camera

Properties

aspect: number = DEFAULT_ASPECT
far: number = DEFAULT_FAR
fov: number
near: number = DEFAULT_NEAR
needsRender: boolean
perspToOrtho: Vector2 = ...
pixelRatio: number = 1

相机姿态

refineModel: boolean
resolution: Vector2 = ...
time: number

Accessors

  • get bottom(): number
  • Returns number

  • get isOrthographicCamera(): boolean
  • Returns boolean

  • get isPerspectiveCamera(): boolean
  • Returns boolean

  • get left(): number
  • Returns number

  • get orthoDistance(): number
  • Returns number

  • get orthographicProjectionMatrix(): Matrix4
  • Returns Matrix4

  • get orthographicProjectionMatrixInverse(): Matrix4
  • Returns Matrix4

  • get perspectiveProjectionMatrix(): Matrix4
  • Returns Matrix4

  • get perspectiveProjectionMatrixInverse(): Matrix4
  • Returns Matrix4

  • get right(): number
  • Returns number

  • get top(): number
  • Returns number

  • get zoom(): number
  • Returns number

Methods

  • Returns void

  • 通过相机参数反算姿态

    Parameters

    • distance: number = 0

    Returns Camera

  • Parameters

    • source: this
    • Optionalrecursive: boolean

    Returns this

  • Parameters

    • target: Vector3

    Returns Vector3

  • 设置相机姿态

    Parameters

    Returns Camera

  • Parameters

    • fullWidth: number
    • fullHeight: number
    • x: number
    • y: number
    • width: number
    • height: number

    Returns void

  • Returns void

  • Parameters

    • time: number

    Returns void