18 if (t < -1.0 - epsilon || t > 1.0 +
epsilon)
41 vec_mid = (vec1_pull_seg + vec2_pull_seg) / 2.0;
43 for (
int i = 0; i <= 2; i++)
51 result = result * 0.5;
55 result = result * 1.0;
double integral() const
Return for this shape.
double integrate(const Vector3d &vec1_pull_seg, const Vector3d &vec2_pull_seg) const
Evaluate the segment integral used by the LDAD bond function.
double operator()(const double &t) const
Evaluate the one-dimensional constant LDAD shape function.
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d