Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::helper::WorldHelper Class Reference

Helper class for world-related functions. More...

#include <WorldHelper.hpp>

Collaboration diagram for raylib::helper::WorldHelper:
Collaboration graph

Static Public Member Functions

static Vector2f getWorldToScreen (const Vector3f &position, const RlCamera &camera)
 Get the screen space position for a 3d world space position. More...
 
static Vector2f getWorldToScreenEx (const Vector3f &position, const RlCamera &camera, int width, int height)
 Get size position for a 3d world space position. More...
 
static Vector2f getWorldToScreen2D (const Vector2f &position, const Camera2D &camera)
 Get the screen space position for a 2d camera world space position. More...
 
static Vector2f getScreenToWorld2D (const Vector2f &position, const Camera2D &camera)
 Get the world space position for a 2d camera screen space position. More...
 

Detailed Description

Helper class for world-related functions.

Member Function Documentation

◆ 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
positionthe 2d camera screen space position
camerathe camera
Returns
the world space position
Here is the call graph for this function:

◆ getWorldToScreen()

Vector2f raylib::helper::WorldHelper::getWorldToScreen ( const Vector3f position,
const RlCamera camera 
)
static

Get the screen space position for a 3d world space position.

Parameters
positionthe 3d world space position
camerathe camera
Returns
the screen space position
Here is the call graph for this function:

◆ 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
positionthe 2d camera world space position
camerathe camera
Returns
the screen space position
Here is the call graph for this function:

◆ 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
positionthe 3d world space position
camerathe camera
widththe screen width
heightthe screen height
Returns
the screen space position
Here is the call graph for this function:

The documentation for this class was generated from the following files: