@@ -197,7 +197,7 @@ public static Matrix4X4<T> CreateFromAxisAngle<T>(Vector3D<T> axis, T angle)
197
197
/// <summary>Creates a rotation matrix from the given Quaternion rotation value.</summary>
198
198
/// <param name="quaternion">The source Quaternion.</param>
199
199
/// <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 )
201
201
where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
202
202
{
203
203
Matrix4X4 < T > result = Matrix4X4 < T > . Identity ;
@@ -237,7 +237,7 @@ public static Matrix4X4<T> CreateFromQuaternion<T>(Quaternion<T> quaternion)
237
237
public static Matrix4X4 < T > CreateFromYawPitchRoll < T > ( T yaw , T pitch , T roll )
238
238
where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
239
239
{
240
- Quaternion < T > q = Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
240
+ Legacy . Quaternion < T > q = Legacy . Quaternion < T > . CreateFromYawPitchRoll ( yaw , pitch , roll ) ;
241
241
return CreateFromQuaternion ( q ) ;
242
242
}
243
243
@@ -1276,7 +1276,7 @@ private static Vector128<T> Permute(Vector128<T> value, byte control)
1276
1276
/// <param name="rotation">The rotation component of the transformation matrix.</param>
1277
1277
/// <param name="translation">The translation component of the transformation matrix</param>
1278
1278
/// <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 )
1280
1280
where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
1281
1281
{
1282
1282
bool result = true ;
@@ -1454,13 +1454,13 @@ public static bool Decompose<T>(Matrix4X4<T> matrix, out Vector3D<T> scale, out
1454
1454
if ( ! Scalar . GreaterThanOrEqual ( Scalar . As < float , T > ( DecomposeEpsilon ) , det ) )
1455
1455
{
1456
1456
// Non-SRT matrix encountered
1457
- rotation = Quaternion < T > . Identity ;
1457
+ rotation = Legacy . Quaternion < T > . Identity ;
1458
1458
result = false ;
1459
1459
}
1460
1460
else
1461
1461
{
1462
1462
// generate the quaternion from the matrix
1463
- rotation = Quaternion < T > . CreateFromRotationMatrix ( matTemp ) ;
1463
+ rotation = Legacy . Quaternion < T > . CreateFromRotationMatrix ( matTemp ) ;
1464
1464
}
1465
1465
}
1466
1466
}
@@ -1488,7 +1488,7 @@ public static unsafe Matrix4X4<T> Lerp<T>(Matrix4X4<T> matrix1, Matrix4X4<T> mat
1488
1488
/// <param name="value">The source matrix to transform.</param>
1489
1489
/// <param name="rotation">The rotation to apply.</param>
1490
1490
/// <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 )
1492
1492
where T : unmanaged, IFormattable , IEquatable < T > , IComparable < T >
1493
1493
{
1494
1494
// Compute rotation matrix.
@@ -1539,4 +1539,4 @@ public static unsafe Matrix4X4<T> Transpose<T>(Matrix4X4<T> matrix)
1539
1539
return new ( matrix . Column1 , matrix . Column2 , matrix . Column3 , matrix . Column4 ) ;
1540
1540
}
1541
1541
}
1542
- }
1542
+ }
0 commit comments