private static MvxAccelerometerReading ToReading(AccelerometerReading sensorReading)
 {
     var reading = new MvxAccelerometerReading
     {
         X = sensorReading.Acceleration.X,
         Y = sensorReading.Acceleration.Y,
         Z = sensorReading.Acceleration.Z
     };
     return reading;
 }
 private static MvxAccelerometerReading ToReading(double x, double y, double z)
 {
     var reading = new MvxAccelerometerReading
         {
             X = x,
             Y = y,
             Z = z,
         };
     return reading;
 }
Example #3
0
        private static MvxAccelerometerReading ToReading(AccelerometerReading sensorReading)
        {
            var reading = new MvxAccelerometerReading
            {
                X = sensorReading.Acceleration.X,
                Y = sensorReading.Acceleration.Y,
                Z = sensorReading.Acceleration.Z
            };

            return(reading);
        }
Example #4
0
        private static MvxAccelerometerReading ToReading(double x, double y, double z)
        {
            var reading = new MvxAccelerometerReading
            {
                X = x,
                Y = y,
                Z = z,
            };

            return(reading);
        }