Helper class for world-related functions.
More...
#include <WorldHelper.hpp>
Helper class for world-related functions.
◆ getScreenToWorld2D()
| Vector2f raylib::helper::WorldHelper::getScreenToWorld2D |
( |
const Vector2f & |
position, |
|
|
const Camera2D & |
camera |
|
) |
| |
|
static |
Get the world space position for a 2d camera screen space position.
- Parameters
-
| position | the 2d camera screen space position |
| camera | the camera |
- Returns
- the world space position
◆ getWorldToScreen()
Get the screen space position for a 3d world space position.
- Parameters
-
| position | the 3d world space position |
| camera | the camera |
- Returns
- the screen space position
◆ getWorldToScreen2D()
| Vector2f raylib::helper::WorldHelper::getWorldToScreen2D |
( |
const Vector2f & |
position, |
|
|
const Camera2D & |
camera |
|
) |
| |
|
static |
Get the screen space position for a 2d camera world space position.
- Parameters
-
| position | the 2d camera world space position |
| camera | the camera |
- Returns
- the screen space position
◆ getWorldToScreenEx()
| Vector2f raylib::helper::WorldHelper::getWorldToScreenEx |
( |
const Vector3f & |
position, |
|
|
const RlCamera & |
camera, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
Get size position for a 3d world space position.
- Parameters
-
| position | the 3d world space position |
| camera | the camera |
| width | the screen width |
| height | the screen height |
- Returns
- the screen space position
The documentation for this class was generated from the following files: