CUGL 2.3
Cornell University Game Library
Loading...
Searching...
No Matches
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

◆ AccelerationEvent() [1/2]

cugl::AccelerationEvent::AccelerationEvent ( )
inline

Constructs a new acceleration event with the default values

◆ AccelerationEvent() [2/2]

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

◆ axis

Vec3 cugl::AccelerationEvent::axis

The 3-axes of acceleration during this event

◆ delta

Vec3 cugl::AccelerationEvent::delta

The acceleration delta from the last recorded value

◆ timestamp

Timestamp cugl::AccelerationEvent::timestamp

The time of the acceleration event


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