|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Kinesis::apply_orbit_rotate | ( | OrbitState & | state, |
| float | dx, | ||
| float | dy | ||
| ) |
Apply a mouse delta to azimuth and elevation.
Elevation is clamped to [-89, +89] degrees to avoid gimbal lock at the poles.
| state | Orbit state (azimuth, elevation mutated). |
| dx | Horizontal pixel delta (positive = right). |
| dy | Vertical pixel delta (positive = down). |
Definition at line 37 of file OrbitState.cpp.
References MayaFlux::Kinesis::OrbitState::azimuth, MayaFlux::Kinesis::OrbitState::elevation, and MayaFlux::Kinesis::OrbitState::rotate_sensitivity.
Referenced by MayaFlux::bind_orbit_preset().
Here is the caller graph for this function: