API

Function centerSprite2DView

  • Position view so the supplied world point appears at the center of its logical screen space.

    Type Parameters

    Parameters

    • view: T
    • worldX: number
    • worldY: number
    • screenWidthPx: number
    • screenHeightPx: number

    Returns T