removed useless EulerAngles.java

This commit is contained in:
Cerrato Renaud
2016-09-12 12:39:23 -04:00
parent e9d90da16e
commit 4e2f4f4063
2 changed files with 2 additions and 32 deletions

View File

@@ -6,7 +6,6 @@ package org.hitlabnz.sensor_fusion_demo.orientationProvider;
import java.util.ArrayList;
import java.util.List;
import org.hitlabnz.sensor_fusion_demo.representation.EulerAngles;
import org.hitlabnz.sensor_fusion_demo.representation.Matrixf4x4;
import org.hitlabnz.sensor_fusion_demo.representation.Quaternion;
@@ -117,14 +116,11 @@ public abstract class OrientationProvider implements SensorEventListener {
}
/**
* @return Returns the current rotation of the device in the Euler-Angles
* Get the current rotation of the device in the Euler angles
*/
public EulerAngles getEulerAngles() {
public void getEulerAngles(float angles[]) {
synchronized (syncToken) {
float[] angles = new float[3];
SensorManager.getOrientation(currentOrientationRotationMatrix.matrix, angles);
return new EulerAngles(angles[0], angles[1], angles[2]);
}
}
}

View File

@@ -1,26 +0,0 @@
package org.hitlabnz.sensor_fusion_demo.representation;
public class EulerAngles {
private float yaw;
private float pitch;
private float roll;
public EulerAngles(float yaw, float pitch, float roll) {
this.yaw = yaw;
this.pitch = pitch;
this.roll = roll;
}
public float getYaw() {
return yaw;
}
public float getPitch() {
return pitch;
}
public float getRoll() {
return roll;
}
}