in Raylib.Core module, getScreenToWorld2D :: Vector2 -> Camera2D -> IO Vector2
but it is theoretically a pure computation, and pure version is always easier to compose.
Should we add something like sreenToWorld2D :: Vector2 -> Camera2D -> Vector2?
screenToWorld2D v c = unsafePerformIO $ getScreenToWorld2D v c
in
Raylib.Core
module,getScreenToWorld2D :: Vector2 -> Camera2D -> IO Vector2
but it is theoretically a pure computation, and pure version is always easier to compose. Should we add something likesreenToWorld2D :: Vector2 -> Camera2D -> Vector2
?screenToWorld2D v c = unsafePerformIO $ getScreenToWorld2D v c