CUGL
Cornell University Game Library
Public Member Functions | Public Attributes | List of all members
cugl::RotationEvent Class Reference

#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
 

Detailed Description

This simple class is a struct to hold rotation event information.

Constructor & Destructor Documentation

cugl::RotationEvent::RotationEvent ( )
inline

Constructs a new touch event with the default values

cugl::RotationEvent::RotationEvent ( const Vec2 point,
int  down,
float  angle,
const Timestamp stamp 
)
inline

Constructs a new pinch event with the given values

Parameters
pointThe normalized rotation center
downThe number of fingers in the rotation
angleThe delta angle of the rotation
stampThe timestamp for the event

Member Data Documentation

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


The documentation for this class was generated from the following file: