mirror of https://github.com/mosra/magnum.git
Browse Source
It should improve performance, because what can be computed at compile time is now computed at compile time. In addition these things have been changed or improved: * Removed constructors from T*, as they cannot be AFAIK written using constexpr functions only and they only do unnecessary data copying most of the time. The functionality is now provided using static functions Matrix*::from() and Vector*::from() which returns either const or non-const reference to original data, so no copy is performed. These functions also have explicit warning about unsafe operations. * Defaulted copy constructors and assignment operators, using "default initialization" for arrays instead of memsetting it with zeros. It should behave the same and this way we don't need any memcpy(), memset() etc. from <cstring>, which is good.vectorfields
10 changed files with 177 additions and 144 deletions
Loading…
Reference in new issue