Skip to content

Commit b16509e

Browse files
rafalmaciagclaude
andcommitted
Add Pose3 constructor accepting Degree<T> rotation parameters
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d3da94b commit b16509e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • Sources/ModelingEvolution.Drawing

Sources/ModelingEvolution.Drawing/Pose3.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ public Pose3(T x, T y, T z, T rx, T ry, T rz)
5050
_rotation = new Rotation3<T>(rx, ry, rz);
5151
}
5252

53+
/// <summary>
54+
/// Initializes a new pose with the specified position and rotation angles in degrees.
55+
/// </summary>
56+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
57+
public Pose3(T x, T y, T z, Degree<T> rx, Degree<T> ry, Degree<T> rz)
58+
{
59+
_position = new Point3<T>(x, y, z);
60+
_rotation = new Rotation3<T>(rx, ry, rz);
61+
}
62+
5363
/// <summary>
5464
/// Gets or sets the position component.
5565
/// </summary>

0 commit comments

Comments
 (0)