mirror of https://github.com/mosra/magnum.git
Browse Source
Marked the constructor as explicit, because we don't want mistakes like
this to happen:
Matrix4::rotation(1.0f, deg(3.0f)); // oops, swapped axis and angle!
Instead, when calling such constructor, the type must be said
explicitly (initializer-list is forbidden, too):
Matrix4::rotation(deg(3.0f), Vector3(1.0f)); // okay
vectorfields
4 changed files with 16 additions and 4 deletions
Loading…
Reference in new issue