@@ -189,8 +189,8 @@ public static Matrix4X4<T> CreateFromAxisAngle<T>(Vector3D<T> axis, T angle)
189189 /// <summary>Creates a rotation matrix from the given Quaternion rotation value.</summary>
190190 /// <param name="quaternion">The source Quaternion.</param>
191191 /// <returns>The rotation matrix.</returns>
192- public static Matrix4X4 < T > CreateFromQuaternion < T > ( Silk . NET . Maths . Legacy . Quaternion < T > quaternion )
193- where T : INumberBase < T >
192+ public static Matrix4X4 < T > CreateFromQuaternion < T > ( Quaternion < T > quaternion )
193+ where T : ITrigonometricFunctions < T >
194194 {
195195 Matrix4X4 < T > result = Matrix4X4 < T > . Identity ;
196196
@@ -227,9 +227,9 @@ public static Matrix4X4<T> CreateFromQuaternion<T>(Silk.NET.Maths.Legacy.Quatern
227227 /// <param name="roll">Angle of rotation, in radians, around the Z-axis.</param>
228228 /// <returns>The rotation matrix.</returns>
229229 public static Matrix4X4 < T > CreateFromYawPitchRoll < T > ( T yaw , T pitch , T roll )
230- where T : INumberBase < T >
230+ where T : ITrigonometricFunctions < T >
231231 {
232- Legacy . Quaternion < T > q = Legacy . Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
232+ var q = Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
233233 return CreateFromQuaternion ( q ) ;
234234 }
235235
@@ -1404,8 +1404,8 @@ public static bool Decompose<T>(Matrix4X4<T> matrix, out Vector3D<T> scale, out
14041404 /// <param name="value">The source matrix to transform.</param>
14051405 /// <param name="rotation">The rotation to apply.</param>
14061406 /// <returns>The transformed matrix.</returns>
1407- public static Matrix4X4 < T > Transform < T > ( Matrix4X4 < T > value , Legacy . Quaternion < T > rotation )
1408- where T : INumberBase < T >
1407+ public static Matrix4X4 < T > Transform < T > ( Matrix4X4 < T > value , Quaternion < T > rotation )
1408+ where T : ITrigonometricFunctions < T >
14091409 {
14101410 // Compute rotation matrix.
14111411 T x2 = Scalar . Add ( rotation . X , rotation . X ) ;
0 commit comments