I've been working on MathTransforms and manipulating its translation components (9, 10, 11) by operating on its ArrayData elements with addition and division. Recently, I've cleaned up the code such that I have multiple MathVectors and the same addition and division operations (Add(), Scale()); lastly putting that back into the MathTransform with ArrayData. However I noticed a large drop in performance from this change. I would like to know if this is expected or how to obtain best performance from math operations.
Edit: Like to add that this is for a C# standalone application.