My omnium-gatherom of scripts and source code.
1Ray GetMouseRay(Vector2 mousePosition, Camera camera);
2Matrix GetCameraMatrix(Camera camera);
3Matrix GetCameraMatrix2D(Camera2D camera);
4Vector2 GetWorldToScreen(Vector3 position, Camera camera);
5Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera);
6Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height);
7Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera);