Function convertWorldToScreenSize

  • Beta

    Calculates object's screen size based on the focal length and it's camera distance.

    Parameters

    • focalLength: number

      Focal length in pixels (see setVerticalFov)

    • distance: number

      Object distance in world space.

    • worldSize: number

      Object size in world space.

    Returns number

    object size in screen space.

Generated using TypeDoc