Browse Source

Math : Fixed Bezier constructor

pull/165/head
Ashwin Ravichandran 10 years ago
parent
commit
daae9f959e
  1. 4
      src/Magnum/Math/Bezier.h

4
src/Magnum/Math/Bezier.h

@ -55,8 +55,8 @@ template<UnsignedInt order, UnsignedInt dimensions, class T> class Bezier {
explicit Bezier(NoInitT) {} explicit Bezier(NoInitT) {}
/** @brief Construct Bezier curve with the given array of control points */ /** @brief Construct Bezier curve with the given array of control points */
template<typename... U> constexpr Bezier(U... u):_points{u...} { template<typename... U> constexpr Bezier(Vector<dimensions, T> first, U... next):_points{first, next...} {
static_assert(sizeof...(U) == order + 1, "Wrong number of arguments"); static_assert(sizeof...(U) + 1 == order + 1, "Bezier : Wrong number of arguments");
} }
/** /**

Loading…
Cancel
Save