/
EulerAngles.cs
39 lines (35 loc) · 999 Bytes
/
EulerAngles.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Meadow.Units;
namespace Meadow.Foundation.Spatial
{
//TODO: are these in degrees?? should be unitized
/// <summary>
/// Euler angles to define the orientation.
/// </summary>
public struct EulerAngles
{
/// <summary>
/// Heading.
/// </summary>
public Angle Heading { get; set; }
/// <summary>
/// Roll angle.
/// </summary>
public Angle Roll { get; set; }
/// <summary>
/// Pitch angle.
/// </summary>
public Angle Pitch { get; set; }
/// <summary>
/// Create a new EulerAngles object.
/// </summary>
/// <param name="heading">Heading reading.</param>
/// <param name="roll">Roll angle.</param>
/// <param name="pitch">Pitch angle.</param>
public EulerAngles(Angle heading, Angle roll, Angle pitch)
{
Heading = heading;
Roll = roll;
Pitch = pitch;
}
}
}