Skip to content

Commit

Permalink
remove Pose3._padw
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Dec 25, 2024
1 parent 50dedeb commit 9e7def2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Xna.Framework/Pose3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;

namespace Microsoft.Xna.Framework
{
[DataContract]
[DebuggerDisplay("{DebugDisplayString,nq}")]
[StructLayout(LayoutKind.Sequential, Size = 32)]
public struct Pose3 : IEquatable<Pose3>
{
#region Private Fields
Expand All @@ -30,7 +32,6 @@ public struct Pose3 : IEquatable<Pose3>
/// </summary>
[DataMember]
public Vector3 Translation;
private float _padw;

#endregion

Expand Down Expand Up @@ -64,7 +65,6 @@ public Pose3(Quaternion orientation, Vector3 translation)
{
this.Orientation = orientation;
this.Translation = translation;
this._padw = default;
}

/// <summary>
Expand All @@ -77,7 +77,6 @@ public static Pose3 Inverse(Pose3 value)
Pose3 result;
result.Orientation = Quaternion.Inverse(value.Orientation);
result.Translation = Vector3.Transform(-value.Translation, result.Orientation);
result._padw = default;
return result;
}

Expand All @@ -92,7 +91,6 @@ public static Pose3 Multiply(Pose3 left, Pose3 right)
Pose3 result;
result.Orientation = Quaternion.Multiply(left.Orientation, right.Orientation);
result.Translation = Vector3.Transform(left.Translation, right);
result._padw = default;
return result;
}

Expand Down

0 comments on commit 9e7def2

Please sign in to comment.