Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Sensor / Tizen.Sensor / EventArgs / MagnetometerRotationVectorSensorDataUpdatedEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18
19 namespace Tizen.Sensor
20 {
21     /// <summary>
22     /// MagnetometerRotationVectorSensor changed event arguments. Class for storing the data returned by magnetometer rotation vector sensor
23     /// </summary>
24     public class MagnetometerRotationVectorSensorDataUpdatedEventArgs : EventArgs
25     {
26         internal MagnetometerRotationVectorSensorDataUpdatedEventArgs(float[] values, SensorDataAccuracy accuracy)
27         {
28             X = values[0];
29             Y = values[1];
30             Z = values[2];
31             W = values[3];
32             Accuracy = accuracy;
33         }
34
35         /// <summary>
36         /// Gets the X component of the magnetometer rotation vector.
37         /// </summary>
38         /// <since_tizen> 3 </since_tizen>
39         /// <value> X </value>
40         public float X { get; private set; }
41
42         /// <summary>
43         /// Gets the Y component of the magnetometer rotation vector.
44         /// </summary>
45         /// <since_tizen> 3 </since_tizen>
46         /// <value> Y </value>
47         public float Y { get; private set; }
48
49         /// <summary>
50         /// Gets the Z component of the magnetometer rotation vector.
51         /// </summary>
52         /// <since_tizen> 3 </since_tizen>
53         /// <value> Z </value>
54         public float Z { get; private set; }
55
56         /// <summary>
57         /// Gets the W component of the magnetometer rotation vector.
58         /// </summary>
59         /// <since_tizen> 3 </since_tizen>
60         /// <value> W </value>
61         public float W { get; private set; }
62
63         /// <summary>
64         /// Gets the accuracy of the magnetometer rotation vector data.
65         /// </summary>
66         /// <since_tizen> 3 </since_tizen>
67         /// <value> Accuracy </value>
68         public SensorDataAccuracy Accuracy { get; private set; }
69     }
70 }