renamed Vector::ToArray() to Vector::array()

This commit is contained in:
Cerrato Renaud
2016-09-12 12:52:51 -04:00
parent 86bbc5408a
commit ea66951871
5 changed files with 5 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ public class CalibratedGyroscopeProvider extends OrientationProvider {
synchronized (syncToken) {
// Set the rotation matrix as well to have both representations
SensorManager.getRotationMatrixFromVector(currentOrientationRotationMatrix.matrix,
correctedQuat.ToArray());
correctedQuat.array());
}
}
timestamp = event.timestamp;

View File

@@ -267,7 +267,7 @@ public class ImprovedOrientationSensor1Provider extends OrientationProvider {
currentOrientationQuaternion.copyVec4(quaternion);
// Set the rotation matrix as well to have both representations
SensorManager.getRotationMatrixFromVector(currentOrientationRotationMatrix.matrix, correctedQuat.ToArray());
SensorManager.getRotationMatrixFromVector(currentOrientationRotationMatrix.matrix, correctedQuat.array());
}
}
}

View File

@@ -268,7 +268,7 @@ public class ImprovedOrientationSensor2Provider extends OrientationProvider {
currentOrientationQuaternion.copyVec4(quaternion);
// Set the rotation matrix as well to have both representations
SensorManager.getRotationMatrixFromVector(currentOrientationRotationMatrix.matrix, correctedQuat.ToArray());
SensorManager.getRotationMatrixFromVector(currentOrientationRotationMatrix.matrix, correctedQuat.array());
}
}
}

View File

@@ -106,7 +106,7 @@ public class MatrixF4x4 {
float z = 0;
float w = 0;
float[] vectorArray = vector.ToArray();
float[] vectorArray = vector.array();
if (colMaj) {
for (int i = 0; i < 4; i++) {

View File

@@ -45,7 +45,7 @@ public class Vector4f {
*
* @return the float[]
*/
public float[] ToArray() {
public float[] array() {
return points;
}