Closed RT-EGG closed 2 years ago
Change calculation from using interface to using generics constrained with interface.
https://stackoverflow.com/questions/3032750/structs-interfaces-and-boxing
Boxing may cause when Vector2(/3/4) constructor received IEnumerable typed argument from Vector calculation class methods or other. Can't use common calculation method to initialize struct...?
Calculation of Matrix and Vector structs uses methods using interface. Converting struct to interface causes boxing with not low cost.