|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phidgets.SpatialEventData
This class represents an a set of spatial data. It's used in the SpatialData event.
Constructor Summary | |
SpatialEventData(double[] acceleration,
double[] angularRate,
double[] magneticField,
int timeSeconds,
int timeMicroSeconds)
Creates a new SpatialEventData object. |
Method Summary | |
double[] |
getAcceleration()
Returns the acceleration data. |
double[] |
getAngularRate()
Returns the angularRate data. |
double[] |
getMagneticField()
Returns the magneticField data. |
double |
getTime()
Returns time since attach in seconds |
int |
getTimeMicroSeconds()
Returns the microseconds since last second. |
int |
getTimeSeconds()
Returns the seconds since attach timestamp. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SpatialEventData(double[] acceleration, double[] angularRate, double[] magneticField, int timeSeconds, int timeMicroSeconds)
acceleration
- the acceleration dataangularRate
- the gyro datamagneticField
- the compass datatimeSeconds
- the timestamp in secondstimeMicroSeconds
- the time since the last second in microsecondsMethod Detail |
public double[] getAcceleration()
public double[] getAngularRate()
public double[] getMagneticField()
public int getTimeSeconds()
public int getTimeMicroSeconds()
public double getTime()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |