quadric_binary_plus_operator.cpp 545 B

1234567891011121314151617
  1. #include "quadric_binary_plus_operator.h"
  2. IGL_INLINE std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double>
  3. igl::operator+(
  4. const std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double> & a,
  5. const std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double> & b)
  6. {
  7. std::tuple<
  8. Eigen::MatrixXd,
  9. Eigen::RowVectorXd,
  10. double> c;
  11. std::get<0>(c) = (std::get<0>(a) + std::get<0>(b)).eval();
  12. std::get<1>(c) = (std::get<1>(a) + std::get<1>(b)).eval();
  13. std::get<2>(c) = (std::get<2>(a) + std::get<2>(b));
  14. return c;
  15. }