public class AccelerometerAdapter extends AbstractFilter implements Accelerometer
sampleSize, source
Constructor and Description |
---|
AccelerometerAdapter(SampleProvider source) |
Modifier and Type | Method and Description |
---|---|
protected int |
getElement(int index) |
int |
getXAccel()
Measures the x-axis of the accelerometer, in meters/second^2.
|
int |
getYAccel()
Measures the y-axis of the accelerometer, in meters/second^2.
|
int |
getZAccel()
Measures the z-axis of the accelerometer, in meters/second^2.
|
fetchSample, sampleSize
public AccelerometerAdapter(SampleProvider source)
protected int getElement(int index)
public int getXAccel()
Accelerometer
getXAccel
in interface Accelerometer
public int getYAccel()
Accelerometer
getYAccel
in interface Accelerometer
public int getZAccel()
Accelerometer
getZAccel
in interface Accelerometer