mirror of https://github.com/mosra/magnum.git
Browse Source
Now works both ways. The base class works with virtually any combination that is supported by the underlying types, so e.g. Dual<Matrix3<T>> could be multiplied/divided with Vector3<T> (result is Vector3<T>), with Matrix3<T> (result is Matrix3<T>) or with T (result is Matrix3<T>). The macros, on the other hand, because they are there only to help with implementation of *my* subclasses, restrict that to the two only cases I need (i.e. multiplication with Dual<T> and Dual<T::Type> and nothing else). Could be extended in the future if it needs to be.pull/114/merge
4 changed files with 39 additions and 18 deletions
Loading…
Reference in new issue