CUGL 2.0
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

◆ RotationEvent() [1/2]

cugl::RotationEvent::RotationEvent ( )
inline

Constructs a new touch event with the default values

◆ RotationEvent() [2/2]

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

◆ delta

float cugl::RotationEvent::delta

The rotation delta since the last animation frame

◆ fingers

int cugl::RotationEvent::fingers

The number of fingers involved in this rotation

◆ position

Vec2 cugl::RotationEvent::position

The normalized center of this rotation

◆ rotation

float cugl::RotationEvent::rotation

The cumulative rotation angle

◆ timestamp

Timestamp cugl::RotationEvent::timestamp

The time of the rotation event


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