Browse Source

Math: return proper type from Range3D::xy().

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
bd1ce7d316
  1. 2
      src/Magnum/Math/Range.h

2
src/Magnum/Math/Range.h

@ -610,7 +610,7 @@ template<class T> class Range3D: public Range<3, T> {
}
/** @brief Range in the XY plane */
constexpr Range<2, T> xy() const {
constexpr Range2D<T> xy() const {
return {Range<3, T>::min().xy(), Range<3, T>::max().xy()};
}

Loading…
Cancel
Save