File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
src/libraries/System.Private.CoreLib/src/System/Numerics Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -166,20 +166,10 @@ public Vector3 Translation
166
166
public static Impl operator * ( in Impl left , in Impl right )
167
167
{
168
168
Impl result ;
169
- result . X = Transform ( left . X , in right ) ;
170
- result . Y = Transform ( left . Y , in right ) ;
171
- result . Z = Transform ( left . Z , in right ) ;
172
- result . W = Transform ( left . W , in right ) ;
173
- return result ;
174
- }
175
-
176
- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
177
- private static Vector4 Transform ( Vector4 vector , in Impl matrix )
178
- {
179
- var result = matrix . X * vector . X ;
180
- result += matrix . Y * vector . Y ;
181
- result += matrix . Z * vector . Z ;
182
- result += matrix . W * vector . W ;
169
+ result . X = Vector4 . Transform ( left . X , in right ) ;
170
+ result . Y = Vector4 . Transform ( left . Y , in right ) ;
171
+ result . Z = Vector4 . Transform ( left . Z , in right ) ;
172
+ result . W = Vector4 . Transform ( left . W , in right ) ;
183
173
return result ;
184
174
}
185
175
You can’t perform that action at this time.
0 commit comments