|
opynsim
Unofficial C++ Documentation
|
#include <orbit_camera_controller.h>
Public Member Functions | |
| void | update_camera (Camera &) const |
| void | reset () |
| void | pan (float aspect_ratio, Vector2 normalized_delta, const Camera &) |
| void | drag (Vector2 normalized_delta) |
| void | zoom_in () |
| void | zoom_out () |
| void | focus_on (const AABB &aabb, const Camera &camera, float aspect_ratio=1.0f) |
| void | focus_along (CoordinateDirection) |
| void | focus_along (const Vector3 &direction) |
Static Public Member Functions | |
| static OrbitCameraController | focused_on (const AABB &aabb, const Camera &camera, float aspect_ratio=1.0f) |
Public Attributes | |
| Vector3 | focus_point {} |
| float | radius = 1.0f |
| Radians | theta = Degrees{45.0f} |
| Radians | phi = Degrees{45.0f} |
Friends | |
| bool | operator== (const OrbitCameraController &, const OrbitCameraController &)=default |
Controls a camera that orbits around a focal point, similar to an "arcball" or "turntable" camera controller in other libraries.
| void osc::OrbitCameraController::drag | ( | Vector2 | normalized_delta | ) |
| void osc::OrbitCameraController::focus_along | ( | const Vector3 & | direction | ) |
| void osc::OrbitCameraController::focus_along | ( | CoordinateDirection | ) |
| void osc::OrbitCameraController::focus_on | ( | const AABB & | aabb, |
| const Camera & | camera, | ||
| float | aspect_ratio = 1.0f |
||
| ) |
|
static |
| void osc::OrbitCameraController::pan | ( | float | aspect_ratio, |
| Vector2 | normalized_delta, | ||
| const Camera & | |||
| ) |
| void osc::OrbitCameraController::reset | ( | ) |
| void osc::OrbitCameraController::update_camera | ( | Camera & | ) | const |
|
inline |
|
inline |
|
friend |
| Vector3 osc::OrbitCameraController::focus_point {} |
| float osc::OrbitCameraController::radius = 1.0f |