Function invertFromWorldSpace

  • Converts a point in "stage/context/world" space to view port space. The origin of the view port is at the bottom left corner. The point is in world space. The camera position is the position of the camera in world space.

    Parameters

    • point: Point
    • viewPortWidth: number
    • viewPortHeight: number
    • cameraPosition: Point
    • cameraZoomLevel: number
    • cameraRotation: number

    Returns Point