Class PickHandlerInternal

Handles the picking of scene geometry and roads.

Hierarchy

  • PickHandler

Constructors

Properties

camera: Camera
enablePickTechnique: boolean = false
mapView: MapView

Methods

  • Does a raycast on all objects in the scene; useful for picking.

    Parameters

    • x: number

      The X position in CSS/client coordinates, without the applied display ratio.

    • y: number

      The Y position in CSS/client coordinates, without the applied display ratio.

    • Optional parameters: IntersectParams

      The intersection test behaviour may be adjusted by providing an instance of IntersectParams.

    Returns PickResult[]

    the list of intersection results.

  • Returns a ray caster using the supplied screen positions.

    Parameters

    • x: number

      The X position in css/client coordinates (without applied display ratio).

    • y: number

      The Y position in css/client coordinates (without applied display ratio).

    Returns Raycaster

    Raycaster with origin at the camera and direction based on the supplied x / y screen points.

Generated using TypeDoc