@@ -38,9 +38,7 @@ public void FixedMatrix4x4_CreateTranslation_WorksCorrectly()
38
38
var matrix = Fixed4x4 . CreateTranslation ( translation ) ;
39
39
40
40
// Extract the translation to verify
41
- var extractedTranslation = matrix . ExtractTranslation ( ) ;
42
-
43
- Assert . Equal ( translation , extractedTranslation ) ;
41
+ Assert . Equal ( translation , matrix . Translation ) ;
44
42
}
45
43
46
44
[ Fact ]
@@ -50,9 +48,7 @@ public void FixedMatrix4x4_CreateScale_WorksCorrectly()
50
48
var matrix = Fixed4x4 . CreateScale ( scale ) ;
51
49
52
50
// Extract the scale to verify
53
- var extractedScale = matrix . ExtractScale ( ) ;
54
-
55
- Assert . Equal ( scale , extractedScale ) ;
51
+ Assert . Equal ( scale , matrix . Scale ) ;
56
52
}
57
53
58
54
[ Fact ]
@@ -84,14 +80,10 @@ public void FixedMatrix4x4_SetTransform_WorksCorrectly()
84
80
matrix . SetTransform ( translation , rotation , scale ) ;
85
81
86
82
// Extract and validate translation, scale, and rotation
87
- var extractedTranslation = matrix . ExtractTranslation ( ) ;
88
- var extractedScale = matrix . ExtractScale ( ) ;
89
- var extractedRotation = matrix . ExtractRotation ( ) ;
90
-
91
- Assert . Equal ( translation , extractedTranslation ) ;
92
- Assert . Equal ( scale , extractedScale ) ;
93
- Assert . True ( extractedRotation . FuzzyEqual ( rotation , new Fixed64 ( 0.0001 ) ) ,
94
- $ "Extracted rotation { extractedRotation } does not match expected { rotation } .") ;
83
+ Assert . Equal ( translation , matrix . Translation ) ;
84
+ Assert . Equal ( scale , matrix . Scale ) ;
85
+ Assert . True ( matrix . Rotation . FuzzyEqual ( rotation , new Fixed64 ( 0.0001 ) ) ,
86
+ $ "Extracted rotation { matrix . Rotation } does not match expected { rotation } .") ;
95
87
}
96
88
97
89
[ Fact ]
@@ -248,9 +240,7 @@ public void FixedMatrix4x4_SetGlobalScale_WorksWithoutRotation()
248
240
matrix . SetGlobalScale ( globalScale ) ;
249
241
250
242
// Extract the final scale
251
- var extractedScale = matrix . ExtractScale ( ) ;
252
-
253
- Assert . Equal ( globalScale , extractedScale ) ;
243
+ Assert . Equal ( globalScale , matrix . Scale ) ;
254
244
}
255
245
256
246
[ Fact ]
0 commit comments