public static class AccelerometerMma8452q.Movement extends Object
Constructor and Description |
---|
Movement(boolean[] thresholds,
Sign[] polarities)
Create a Movement object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Boolean |
exceedsThreshold(CartesianAxis axis)
Check if acceleration is greater than the threshold on that axis
|
int |
hashCode() |
Sign |
polarity(CartesianAxis axis)
Check the polarity (directional) information of the axis
|
String |
toString() |
public Movement(boolean[] thresholds, Sign[] polarities)
thresholds
- Threshold information for XYZ axis in that orderpolarities
- Directional information for XYZ axes in that orderpublic Boolean exceedsThreshold(CartesianAxis axis)
axis
- Axis to lookuppublic Sign polarity(CartesianAxis axis)
axis
- Axis to lookupSign.POSITIVE
if event was positive g, Sign.NEGATIVE
if negative g