Skip to content

Commit b41a218

Browse files
authored
remove Pose3._padw (#2153)
1 parent 50dedeb commit b41a218

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Xna.Framework/Pose3.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
using System;
44
using System.Diagnostics;
5+
using System.Runtime.InteropServices;
56
using System.Runtime.Serialization;
67

78
namespace Microsoft.Xna.Framework
89
{
910
[DataContract]
1011
[DebuggerDisplay("{DebugDisplayString,nq}")]
12+
[StructLayout(LayoutKind.Sequential, Size = 32)]
1113
public struct Pose3 : IEquatable<Pose3>
1214
{
1315
#region Private Fields
@@ -30,7 +32,6 @@ public struct Pose3 : IEquatable<Pose3>
3032
/// </summary>
3133
[DataMember]
3234
public Vector3 Translation;
33-
private float _padw;
3435

3536
#endregion
3637

@@ -64,7 +65,6 @@ public Pose3(Quaternion orientation, Vector3 translation)
6465
{
6566
this.Orientation = orientation;
6667
this.Translation = translation;
67-
this._padw = default;
6868
}
6969

7070
/// <summary>
@@ -77,7 +77,6 @@ public static Pose3 Inverse(Pose3 value)
7777
Pose3 result;
7878
result.Orientation = Quaternion.Inverse(value.Orientation);
7979
result.Translation = Vector3.Transform(-value.Translation, result.Orientation);
80-
result._padw = default;
8180
return result;
8281
}
8382

@@ -92,7 +91,6 @@ public static Pose3 Multiply(Pose3 left, Pose3 right)
9291
Pose3 result;
9392
result.Orientation = Quaternion.Multiply(left.Orientation, right.Orientation);
9493
result.Translation = Vector3.Transform(left.Translation, right);
95-
result._padw = default;
9694
return result;
9795
}
9896

0 commit comments

Comments
 (0)