mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-11 18:00:51 +08:00
fixed Spline constructor dimension bug
This commit is contained in:
commit
dead9085c0
@ -57,7 +57,7 @@ namespace Eigen
|
||||
**/
|
||||
Spline()
|
||||
: m_knots(1, (Degree==Dynamic ? 2 : 2*Degree+2))
|
||||
, m_ctrls(ControlPointVectorType::Zero(2,(Degree==Dynamic ? 1 : Degree+1)))
|
||||
, m_ctrls(ControlPointVectorType::Zero(Dimension,(Degree==Dynamic ? 1 : Degree+1)))
|
||||
{
|
||||
// in theory this code can go to the initializer list but it will get pretty
|
||||
// much unreadable ...
|
||||
|
Loading…
Reference in New Issue
Block a user