|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kinesis::snap_ortho | ( | NavigationState & | state, |
| int | view | ||
| ) |
Snap to a named ortho view.
Preserves the current distance from the origin. Yaw/pitch are set to exact axis-aligned values. The top view uses pitch = -89 degrees to avoid the degenerate lookAt case at exactly -90 degrees.
| state | Navigation state (eye, yaw, pitch mutated) |
| view | 0 = front (+Z), 1 = right (+X), 2 = top (+Y), 3 = flip opposite |
Definition at line 76 of file NavigationState.cpp.
References MayaFlux::Kinesis::NavigationState::eye, MayaFlux::Kinesis::NavigationState::pitch, and MayaFlux::Kinesis::NavigationState::yaw.
Referenced by MayaFlux::bind_viewport_preset().
Here is the caller graph for this function: