@@ -74,7 +74,7 @@ public static void QuaternionToEuler(QuaternionKF source, float deviationThresho
7474 /// <returns>The converted euler rotation keyframes.</returns>
7575 public static EulerKF QuaternionToEuler ( QuaternionKF source , float deviationThreshold , bool rotateZYX )
7676 {
77- EulerKF result = new ( ) ;
77+ EulerKF result = [ ] ;
7878 QuaternionToEuler ( source , deviationThreshold , rotateZYX , result ) ;
7979 return result ;
8080 }
@@ -156,7 +156,7 @@ public static void EulerToQuaternion(EulerKF source, float deviationThreshold, b
156156 /// <returns>The converted quaternion rotation keyframes.</returns>
157157 public static QuaternionKF EulerToQuaternion ( EulerKF source , float deviationThreshold , bool rotateZYX )
158158 {
159- QuaternionKF result = new ( ) ;
159+ QuaternionKF result = [ ] ;
160160 EulerToQuaternion ( source , deviationThreshold , rotateZYX , result ) ;
161161 return result ;
162162 }
@@ -222,7 +222,7 @@ public static void EulerToQuaternion(this Keyframes keyframes, float deviationTh
222222 /// <returns>The converted rotation matrix keyframes.</returns>
223223 public static Matrix4x4KF GetRotationMatrices ( this Keyframes keyframes , bool targetQuaternion , float deviationThreshold , bool rotateZYX , out bool converted , out Dictionary < uint , Matrix4x4 [ ] > ? complementary )
224224 {
225- Matrix4x4KF result = new ( ) ;
225+ Matrix4x4KF result = [ ] ;
226226 complementary = null ;
227227 converted = false ;
228228
@@ -258,7 +258,7 @@ public static Matrix4x4KF GetRotationMatrices(this Keyframes keyframes, bool tar
258258
259259 Vector3 ? previous = null ;
260260 uint previousFrame = 0 ;
261- complementary = new ( ) ;
261+ complementary = [ ] ;
262262
263263 foreach ( KeyValuePair < uint , Vector3 > rotation in output )
264264 {
@@ -335,7 +335,7 @@ public static void MatrixToQuaternion(Matrix4x4KF source, bool wasQuaternion, fl
335335 }
336336 else
337337 {
338- EulerKF rotations = new ( ) ;
338+ EulerKF rotations = [ ] ;
339339 ConvertMatrixToRotation ( source , rotateZYX , null , rotations ) ;
340340 EulerToQuaternion ( rotations , deviationThreshold , rotateZYX , result ) ;
341341 }
@@ -351,7 +351,7 @@ public static void MatrixToQuaternion(Matrix4x4KF source, bool wasQuaternion, fl
351351 /// <returns>The converted quaternion keyframes.</returns>
352352 public static QuaternionKF MatrixToQuaternion ( Matrix4x4KF source , bool wasQuaternion , float deviationThreshold , bool rotateZYX )
353353 {
354- QuaternionKF result = new ( ) ;
354+ QuaternionKF result = [ ] ;
355355 MatrixToQuaternion ( source , wasQuaternion , deviationThreshold , rotateZYX , result ) ;
356356 return result ;
357357 }
@@ -388,7 +388,7 @@ public static void MatrixToEuler(Matrix4x4KF source, bool wasQuaternion, float d
388388 {
389389 if ( wasQuaternion )
390390 {
391- QuaternionKF quaternions = new ( ) ;
391+ QuaternionKF quaternions = [ ] ;
392392 ConvertMatrixToQuaternion ( source , quaternions ) ;
393393 QuaternionToEuler ( quaternions , deviationThreshold , rotateZYX , result ) ;
394394 }
@@ -409,7 +409,7 @@ public static void MatrixToEuler(Matrix4x4KF source, bool wasQuaternion, float d
409409 /// <returns>The converted euler keyframes.</returns>
410410 public static EulerKF MatrixToEuler ( Matrix4x4KF source , bool wasQuaternion , float deviationThreshold , bool rotateZYX , Dictionary < uint , Matrix4x4 [ ] > ? complementary )
411411 {
412- EulerKF result = new ( ) ;
412+ EulerKF result = [ ] ;
413413 MatrixToEuler ( source , wasQuaternion , deviationThreshold , rotateZYX , complementary , result ) ;
414414 return result ;
415415 }
0 commit comments