◆ getForward()
static vec3 coat::Camera::getForward |
( |
| ) |
|
|
static |
get the forward direction
- Returns
- the direction
◆ getPivot()
static vec3 coat::Camera::getPivot |
( |
| ) |
|
|
static |
get the camera pivot position
- Returns
- the position
◆ getPosition()
static vec3 coat::Camera::getPosition |
( |
| ) |
|
|
static |
get the camera position
- Returns
- the camera position
◆ getRight()
static vec3 coat::Camera::getRight |
( |
| ) |
|
|
static |
get the camera right direction
- Returns
- the direction
◆ getScreenToWorldSpace()
static vec3 coat::Camera::getScreenToWorldSpace |
( |
const vec3 & | screen_pos | ) |
|
|
static |
convert the screen position to the world position
- Parameters
-
screen_pos | the screen position (pass z that you got using getWorldToScreenSpace) |
- Returns
- the world position
◆ getUp()
static vec3 coat::Camera::getUp |
( |
| ) |
|
|
static |
get the camera up direction
- Returns
- the direction
◆ getWorldToScreenSpace()
static vec3 coat::Camera::getWorldToScreenSpace |
( |
const vec3 & | world_pos | ) |
|
|
static |
convert the world position to the screen position
- Parameters
-
world_pos | the world position |
- Returns
- the screen position
◆ isOrtho()
static bool coat::Camera::isOrtho |
( |
| ) |
|
|
static |
return true if the camera is in the ortho mode
- Returns
- the ortho mode state
◆ rotateToGradually()
static void coat::Camera::rotateToGradually |
( |
const vec3 & | destination_dir | ) |
|
|
static |
align the camera along the view
- Parameters
-
destination_dir | the view direction |
◆ setCamera()
static void coat::Camera::setCamera |
( |
const vec3 & | position, |
|
|
const vec3 & | lookAt, |
|
|
float | fovY, |
|
|
const vec3 & | up = vec3::Zero ) |
|
static |
◆ setOrtho()
static void coat::Camera::setOrtho |
( |
bool | ortho | ) |
|
|
static |
switch the camera to the ortho or perspective mode
- Parameters
-
ortho | set true if need ortho mode, false if need perspective mode |
◆ setPivot()
static void coat::Camera::setPivot |
( |
const vec3 & | pivot | ) |
|
|
static |
set the camera pivot position
- Parameters
-
The documentation for this class was generated from the following file: