Function cameraPositionToGet

  • Calculates the camera position to get a point in "stage/context/world" space to be at a certain point in view port space. This is useful to coordinate camera pan and zoom at the same time.

    Parameters

    • pointInWorld: Point
    • toPointInViewPort: Point
    • cameraZoomLevel: number
    • cameraRotation: number

    Returns Point