CUGL
Cornell University Game Library
|
#include <CURotationInput.h>
Public Member Functions | |
RotationEvent () | |
RotationEvent (const Vec2 &point, int down, float angle, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
Vec2 | position |
int | fingers |
float | rotation |
float | delta |
This simple class is a struct to hold rotation event information.
|
inline |
Constructs a new touch event with the default values
|
inline |
Constructs a new pinch event with the given values
point | The normalized rotation center |
down | The number of fingers in the rotation |
angle | The delta angle of the rotation |
stamp | The timestamp for the event |
float cugl::RotationEvent::delta |
The rotation delta since the last animation frame
int cugl::RotationEvent::fingers |
The number of fingers involved in this rotation
Vec2 cugl::RotationEvent::position |
The normalized center of this rotation
float cugl::RotationEvent::rotation |
The cumulative rotation angle
Timestamp cugl::RotationEvent::timestamp |
The time of the rotation event