Function convert2ViewPortSpaceAnchorAtCenter

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

    Parameters

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

    Returns Point