示例#1
0
bool Polynomial<CoefficientType>::isApprox(const Polynomial& other,
                                           const RealScalar& tol) const {
  return getCoefficients().isApprox(other.getCoefficients(), tol);
}
示例#2
0
文件: lcmUtil.cpp 项目: Sproulx/drake
void encodePolynomial(const Polynomial<double>& polynomial, drake::lcmt_polynomial& msg)
{
  eigenVectorToStdVector(polynomial.getCoefficients(), msg.coefficients);
  msg.num_coefficients = polynomial.getNumberOfCoefficients();
}