32 |
|
|
33 |
|
#ifndef TYPES_POLYNOMIALBENDTYPE_HPP |
34 |
|
#define TYPES_POLYNOMIALBENDTYPE_HPP |
35 |
+ |
#include <iostream> |
36 |
|
|
36 |
– |
namespace oopse { |
37 |
– |
|
37 |
|
#include "math/Polynomial.hpp" |
38 |
|
#include "types/BendType.hpp" |
39 |
+ |
|
40 |
+ |
namespace oopse { |
41 |
+ |
|
42 |
|
/** |
43 |
|
* @class PolynomialBendType PolynomialBendType.hpp "types/PolynomialBendType.hpp" |
44 |
|
* @todo documentation |
46 |
|
class PolynomialBendType : public BendType{ |
47 |
|
|
48 |
|
public: |
49 |
< |
PolynomialBendType() {} |
48 |
< |
PolynomialBendType(double theta, const std::vector<int>& power, |
49 |
< |
const std::vector<double>& coeff) : BendType(theta){ |
50 |
< |
} |
49 |
> |
PolynomialBendType(double theta) : BendType(theta) {} |
50 |
|
|
51 |
|
void setCoefficient(int power, double coefficient) { |
52 |
|
polynomial_.setCoefficient(power, coefficient); |
71 |
|
}; |
72 |
|
|
73 |
|
std::ostream& operator <<(std::ostream& os, PolynomialBendType& pbt) { |
74 |
< |
typename DoublePolynomial::PolynomialIterator i; |
74 |
> |
typename DoublePolynomial::const_iterator i; |
75 |
|
|
76 |
|
i = pbt.polynomial_.begin(); |
77 |
|
|