コード例 #1
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;
 }
コード例 #2
0
 private static MvxAccelerometerReading ToReading(double x, double y, double z)
 {
     var reading = new MvxAccelerometerReading
         {
             X = x,
             Y = y,
             Z = z,
         };
     return reading;
 }
コード例 #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);
        }
コード例 #4
0
        private static MvxAccelerometerReading ToReading(double x, double y, double z)
        {
            var reading = new MvxAccelerometerReading
            {
                X = x,
                Y = y,
                Z = z,
            };

            return(reading);
        }