SPH
|
Helper object providing rotation matrix based on mouse drag. More...
#include <ArcBall.h>
Public Member Functions | |
ArcBall () | |
ArcBall (const Pixel size) | |
void | resize (const Pixel newSize) |
void | click (const Pixel point) |
Called on mouse click, starting the rotation. More... | |
AffineMatrix | drag (const Pixel point, const Vector &pivot) |
Called when mouse moves, rotating the object. More... | |
Helper object providing rotation matrix based on mouse drag.
Member function correspond need to be called from mouse events, function drag then returns the rotation matrix. The functions must be called in order: click - drag - drag - ... - drag - stop - click - drag ..., etc. Order is checked by assert.
Done according to https://gist.github.com/vilmosioo/5318327
|
inline |
|
inline |