List of utility methods to do Vector Create
double[] | getVector(SensorEvent event) get Vector return getVector(event.values);
|
double[] | getVector(float[] eventVals) get Vector final double[] values = new double[3]; int axis = 0; for (double value : eventVals) { value = BigDecimal.valueOf(value).setScale(3, 0).doubleValue(); values[axis] = value; axis++; return values; ... |