Draggable 3D orientation — arcball rotation from mouse drag.
More...
#include <animator_set.hpp>
|
| void | begin_drag (float x, float y) |
| | Begin a drag at the given 2D screen position (normalized -1 to 1).
|
| void | update_drag (float x, float y) |
| | Update during drag.
|
| void | end_drag () |
| | End the drag.
|
| const Quaternion & | orientation () const |
| | Current orientation quaternion.
|
| void | reset () |
| | Reset to identity (also cancels any active drag).
|
Draggable 3D orientation — arcball rotation from mouse drag.
◆ begin_drag()
| void pulp::view::Draggable3DOrientation::begin_drag |
( |
float | x, |
|
|
float | y ) |
|
inline |
Begin a drag at the given 2D screen position (normalized -1 to 1).
◆ end_drag()
| void pulp::view::Draggable3DOrientation::end_drag |
( |
| ) |
|
|
inline |
◆ orientation()
| const Quaternion & pulp::view::Draggable3DOrientation::orientation |
( |
| ) |
const |
|
inline |
Current orientation quaternion.
◆ reset()
| void pulp::view::Draggable3DOrientation::reset |
( |
| ) |
|
|
inline |
Reset to identity (also cancels any active drag).
◆ update_drag()
| void pulp::view::Draggable3DOrientation::update_drag |
( |
float | x, |
|
|
float | y ) |
|
inline |
The documentation for this class was generated from the following file: