Orthographic projection configuration for a Camera .

Hierarchy (View Summary)

Implements

Properties

camera: Camera

The Camera this OrthoProjection belongs to.

destroyed: boolean

True once this Component has been destroyed.

Don't use this Component if this is true.

dirty: boolean
id: string

Unique ID of this Component.

type: number = OrthoProjectionType

The type of this projection.

Accessors

  • get far(): number
  • Gets the position of the OrthoProjection's far plane on the positive View-space Z-axis.

    Default value is 10000.0.

    returns New far ortho plane position.

    Returns number

  • set far(value: number): void
  • Sets the position of the OrthoProjection's far plane on the positive View-space Z-axis.

    Default value is 2000.0.

    Parameters

    • value: number

      New far ortho plane position.

    Returns void

  • get near(): number
  • Gets the position of the OrthoProjection's near plane on the positive View-space Z-axis.

    Default value is 0.1.

    returns New OrthoProjection near plane position.

    Returns number

  • set near(value: number): void
  • Sets the position of the OrthoProjection's near plane on the positive View-space Z-axis.

    Default value is 0.1.

    Parameters

    • value: number

      New OrthoProjection near plane position.

    Returns void

  • get scale(): number
  • Gets scale factor for this OrthoProjection's extents on X and Y axis.

    Clamps to minimum value of ````0.01```.

    Default value is 1.0

    returns New OrthoProjection scale value.

    Returns number

  • set scale(value: number): void
  • Sets scale factor for this OrthoProjection's extents on X and Y axis.

    Clamps to minimum value of ````0.01```.

    Default value is 1.0

    Parameters

    • value: number

      New scale value.

    Returns void

Methods

  • Protected

    Logs an error for this component to the JavaScript console.

    The console message will have this format: [ERROR] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The error message to log

    Returns void

  • Protected

    Logs a message for this component.

    The message will have this format: [LOG] [<component type> <component id>: <message>

    Parameters

    • message: string

      The message to log

    Returns void

  • Protected

    Logs a warning for this component to the JavaScript console.

    The console message will have this format: [WARN] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The warning message to log

    Returns void

Events

onDestroyed: EventEmitter<Component, null>

Emits an event when the Component has been destroyed.

Emits an event each time OrthoProjection.projMatrix updates.