@@ -197,7 +197,7 @@ public static Matrix4X4<T> CreateFromAxisAngle<T>(Vector3D<T> axis, T angle)
197197 /// <summary>Creates a rotation matrix from the given Quaternion rotation value.</summary>
198198 /// <param name="quaternion">The source Quaternion.</param>
199199 /// <returns>The rotation matrix.</returns>
200- public static Matrix4X4 < T > CreateFromQuaternion < T > ( Quaternion < T > quaternion )
200+ public static Matrix4X4 < T > CreateFromQuaternion < T > ( Silk . NET . Maths . Legacy . Quaternion < T > quaternion )
201201 where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
202202 {
203203 Matrix4X4 < T > result = Matrix4X4 < T > . Identity ;
@@ -237,7 +237,7 @@ public static Matrix4X4<T> CreateFromQuaternion<T>(Quaternion<T> quaternion)
237237 public static Matrix4X4 < T > CreateFromYawPitchRoll < T > ( T yaw , T pitch , T roll )
238238 where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
239239 {
240- Quaternion < T > q = Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
240+ Legacy . Quaternion < T > q = Legacy . Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
241241 return CreateFromQuaternion ( q ) ;
242242 }
243243
@@ -1276,7 +1276,7 @@ private static Vector128<T> Permute(Vector128<T> value, byte control)
12761276 /// <param name="rotation">The rotation component of the transformation matrix.</param>
12771277 /// <param name="translation">The translation component of the transformation matrix</param>
12781278 /// <returns>True if the source matrix was successfully decomposed; False otherwise.</returns>
1279- public static bool Decompose < T > ( Matrix4X4 < T > matrix , out Vector3D < T > scale , out Quaternion < T > rotation , out Vector3D < T > translation )
1279+ public static bool Decompose < T > ( Matrix4X4 < T > matrix , out Vector3D < T > scale , out Silk . NET . Maths . Legacy . Quaternion < T > rotation , out Vector3D < T > translation )
12801280 where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
12811281 {
12821282 bool result = true ;
@@ -1454,13 +1454,13 @@ public static bool Decompose<T>(Matrix4X4<T> matrix, out Vector3D<T> scale, out
14541454 if ( ! Scalar . GreaterThanOrEqual ( Scalar . As < float , T > ( DecomposeEpsilon ) , det ) )
14551455 {
14561456 // Non-SRT matrix encountered
1457- rotation = Quaternion < T > . Identity ;
1457+ rotation = Legacy . Quaternion < T > . Identity ;
14581458 result = false ;
14591459 }
14601460 else
14611461 {
14621462 // generate the quaternion from the matrix
1463- rotation = Quaternion < T > . CreateFromRotationMatrix ( matTemp ) ;
1463+ rotation = Legacy . Quaternion < T > . CreateFromRotationMatrix ( matTemp ) ;
14641464 }
14651465 }
14661466 }
@@ -1488,7 +1488,7 @@ public static unsafe Matrix4X4<T> Lerp<T>(Matrix4X4<T> matrix1, Matrix4X4<T> mat
14881488 /// <param name="value">The source matrix to transform.</param>
14891489 /// <param name="rotation">The rotation to apply.</param>
14901490 /// <returns>The transformed matrix.</returns>
1491- public static Matrix4X4 < T > Transform < T > ( Matrix4X4 < T > value , Quaternion < T > rotation )
1491+ public static Matrix4X4 < T > Transform < T > ( Matrix4X4 < T > value , Legacy . Quaternion < T > rotation )
14921492 where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
14931493 {
14941494 // Compute rotation matrix.
@@ -1539,4 +1539,4 @@ public static unsafe Matrix4X4<T> Transpose<T>(Matrix4X4<T> matrix)
15391539 return new ( matrix . Column1 , matrix . Column2 , matrix . Column3 , matrix . Column4 ) ;
15401540 }
15411541 }
1542- }
1542+ }
0 commit comments