rapid-sdk
    Preparing search index...

    Function projScreenToWorld

    • Converts screen coordinate to world coordinate by applying an inverse transform.

      Parameters

      • screen: Vec2

        screen coordinate [x, y]

      • transform: Required<TransformProps>

        transform properties {x,y,z,r}

      • center: Vec2

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

      • OptionalincludeRotation: boolean

        if true, remove transform rotation

      Returns Vec2

      world coordinate [x, y]