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

#include <CUAccelerometer.h>

Public Member Functions

 AccelerationEvent ()
 
 AccelerationEvent (const Vec3 &roll, const Vec3 &diff, const Timestamp &stamp)
 

Public Attributes

Timestamp timestamp
 
Vec3 axis
 
Vec3 delta
 

Detailed Description

This simple class is a struct to hold acceleration event information

Constructor & Destructor Documentation

cugl::AccelerationEvent::AccelerationEvent ( )
inline

Constructs a new acceleration event with the default values

cugl::AccelerationEvent::AccelerationEvent ( const Vec3 roll,
const Vec3 diff,
const Timestamp stamp 
)
inline

Constructs a new touch event with the given values

Parameters
rollThe 3-axes of acceleration
diffThe acceleration delta from the last recorded value
stampThe timestamp for the event

Member Data Documentation

Vec3 cugl::AccelerationEvent::axis

The 3-axes of acceleration during this event

Vec3 cugl::AccelerationEvent::delta

The acceleration delta from the last recorded value

Timestamp cugl::AccelerationEvent::timestamp

The time of the acceleration event


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