|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.util.additions3d.AccelerationSample
public class AccelerationSample
Contains a sample of x- y- and z- acceleration
| Constructor Summary | |
|---|---|
AccelerationSample()
Constructor |
|
AccelerationSample(double xAcc,
double yAcc,
double zAcc)
Constructor with assignment of accelerations |
|
AccelerationSample(double xAcceleration,
double yAcceleration,
double zAcceleration,
long timeStamp)
Constructor with assignment of accelerations and timestamp |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones a AccelerationSample. |
long |
getTimeStamp()
returns the time stamp for this sample |
double |
getXAcceleration()
returns the x acceleration in this sample |
double |
getYAcceleration()
returns the y acceleration in this sample |
double |
getZAcceleration()
returns The z acceleration in this sample |
boolean |
hasTimeStamp()
Returns true if the point has a timestamp, otherwise false |
void |
setTimeStamp(long timeStamp)
Sets the time stamp for this sample |
void |
setXAcceleration(double acceleration)
sets the x acceleration in this sample |
void |
setYAcceleration(double acceleration)
sets the y acceleration in this sample |
void |
setZAcceleration(double acceleration)
sets the z acceleration in this sample |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccelerationSample()
public AccelerationSample(double xAcc,
double yAcc,
double zAcc)
xAcc - The x acceleration to be setyAcc - The y acceleration to be setzAcc - The z acceleration to be set
public AccelerationSample(double xAcceleration,
double yAcceleration,
double zAcceleration,
long timeStamp)
xAcceleration - The x acceleration to be setyAcceleration - The y acceleration to be setzAcceleration - The z acceleration to be settimeStamp - The system time at the moment the sample was recorded| Method Detail |
|---|
public double getXAcceleration()
public void setXAcceleration(double acceleration)
acceleration - The x acceleration to be setpublic double getYAcceleration()
public void setYAcceleration(double acceleration)
acceleration - The y acceleration to be setpublic double getZAcceleration()
public void setZAcceleration(double acceleration)
acceleration - The z acceleration to be setpublic long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp - The timestamp that should be set for this samplepublic boolean hasTimeStamp()
public Object clone()
clone in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||