Public Member Functions | |
| double[] | getAcceleration () |
| double[] | getAngularRate () |
| double[] | getMagneticField () |
| double | getTime () |
| int | getTimeMicroSeconds () |
| int | getTimeSeconds () |
| SpatialEventData (double[] acceleration, double[] angularRate, double[] magneticField, int timeSeconds, int timeMicroSeconds) | |
| String | toString () |
Package Attributes | |
| int | timeMicroSeconds |
Private Attributes | |
| double[] | acceleration |
| double[] | angularRate |
| double[] | magneticField |
| int | timeSeconds |
This class represents an a set of spatial data. It's used in the SpatialData event.
Definition at line 12 of file SpatialEventData.java.
| com.phidgets.SpatialEventData.SpatialEventData | ( | double[] | acceleration, |
| double[] | angularRate, | ||
| double[] | magneticField, | ||
| int | timeSeconds, | ||
| int | timeMicroSeconds | ||
| ) | [inline] |
Creates a new SpatialEventData object.
| acceleration | the acceleration data |
| angularRate | the gyro data |
| magneticField | the compass data |
| timeSeconds | the timestamp in seconds |
| timeMicroSeconds | the time since the last second in microseconds |
Definition at line 27 of file SpatialEventData.java.
| double [] com.phidgets.SpatialEventData.getAcceleration | ( | ) | [inline] |
Returns the acceleration data.
Definition at line 46 of file SpatialEventData.java.
| double [] com.phidgets.SpatialEventData.getAngularRate | ( | ) | [inline] |
Returns the angularRate data.
Definition at line 55 of file SpatialEventData.java.
| double [] com.phidgets.SpatialEventData.getMagneticField | ( | ) | [inline] |
Returns the magneticField data.
Definition at line 64 of file SpatialEventData.java.
| double com.phidgets.SpatialEventData.getTime | ( | ) | [inline] |
Returns time since attach in seconds
Definition at line 91 of file SpatialEventData.java.
| int com.phidgets.SpatialEventData.getTimeMicroSeconds | ( | ) | [inline] |
Returns the microseconds since last second.
Definition at line 82 of file SpatialEventData.java.
| int com.phidgets.SpatialEventData.getTimeSeconds | ( | ) | [inline] |
Returns the seconds since attach timestamp.
Definition at line 73 of file SpatialEventData.java.
| String com.phidgets.SpatialEventData.toString | ( | ) | [inline] |
Definition at line 96 of file SpatialEventData.java.
double [] com.phidgets.SpatialEventData.acceleration [private] |
Definition at line 14 of file SpatialEventData.java.
double [] com.phidgets.SpatialEventData.angularRate [private] |
Definition at line 15 of file SpatialEventData.java.
double [] com.phidgets.SpatialEventData.magneticField [private] |
Definition at line 16 of file SpatialEventData.java.
int com.phidgets.SpatialEventData.timeMicroSeconds [package] |
Definition at line 17 of file SpatialEventData.java.
int com.phidgets.SpatialEventData.timeSeconds [private] |
Definition at line 17 of file SpatialEventData.java.