2
2
3
3
using System ;
4
4
using System . Diagnostics ;
5
+ using System . Runtime . InteropServices ;
5
6
using System . Runtime . Serialization ;
6
7
7
8
namespace Microsoft . Xna . Framework
8
9
{
9
10
[ DataContract ]
10
11
[ DebuggerDisplay ( "{DebugDisplayString,nq}" ) ]
12
+ [ StructLayout ( LayoutKind . Sequential , Size = 32 ) ]
11
13
public struct Pose3 : IEquatable < Pose3 >
12
14
{
13
15
#region Private Fields
@@ -30,7 +32,6 @@ public struct Pose3 : IEquatable<Pose3>
30
32
/// </summary>
31
33
[ DataMember ]
32
34
public Vector3 Translation ;
33
- private float _padw ;
34
35
35
36
#endregion
36
37
@@ -64,7 +65,6 @@ public Pose3(Quaternion orientation, Vector3 translation)
64
65
{
65
66
this . Orientation = orientation ;
66
67
this . Translation = translation ;
67
- this . _padw = default ;
68
68
}
69
69
70
70
/// <summary>
@@ -77,7 +77,6 @@ public static Pose3 Inverse(Pose3 value)
77
77
Pose3 result ;
78
78
result . Orientation = Quaternion . Inverse ( value . Orientation ) ;
79
79
result . Translation = Vector3 . Transform ( - value . Translation , result . Orientation ) ;
80
- result . _padw = default ;
81
80
return result ;
82
81
}
83
82
@@ -92,7 +91,6 @@ public static Pose3 Multiply(Pose3 left, Pose3 right)
92
91
Pose3 result ;
93
92
result . Orientation = Quaternion . Multiply ( left . Orientation , right . Orientation ) ;
94
93
result . Translation = Vector3 . Transform ( left . Translation , right ) ;
95
- result . _padw = default ;
96
94
return result ;
97
95
}
98
96
0 commit comments