rapid-sdk
    Preparing search index...

    Function projWorldToScreen

    • Converts world coordinate to screen coordinate by applying a transform.

      Parameters

      • world: Vec2

        world coordinate [x, y]

      • transform: Required<TransformProps>

        transform properties {x,y,z,r}

      • center: Vec2

        screen center [x, y], used when applying rotation

      • OptionalincludeRotation: boolean

        if true, apply transform rotation

      Returns Vec2

      screen coordinate [x, y]