Go to the documentation of this file.
38 #ifndef FCL_NARROWPHASE_DETAIL_SPHERESPHERE_INL_H
39 #define FCL_NARROWPHASE_DETAIL_SPHERESPHERE_INL_H
54 std::vector<ContactPoint<double>>* contacts);
61 double* dist, Vector3<double>* p1, Vector3<double>* p2);
70 Vector3<S> diff = tf2.translation() - tf1.translation();
79 const Vector3<S> normal = len > 0 ? (diff / len).eval() : diff;
82 contacts->emplace_back(normal,
point, penetration_depth);
102 if(p1) *p1 = (o1 - diff * (s1.
radius / len));
103 if(p2) *p2 = (o2 + diff * (s2.
radius / len));
template class FCL_EXPORT Sphere< double >
Eigen::Transform< S, 3, Eigen::Isometry > Transform3
template FCL_EXPORT bool sphereSphereIntersect(const Sphere< double > &s1, const Transform3< double > &tf1, const Sphere< double > &s2, const Transform3< double > &tf2, std::vector< ContactPoint< double >> *contacts)
Eigen::Matrix< S, 3, 1 > Vector3
template FCL_EXPORT bool sphereSphereDistance(const Sphere< double > &s1, const Transform3< double > &tf1, const Sphere< double > &s2, const Transform3< double > &tf2, double *dist, Vector3< double > *p1, Vector3< double > *p2)
S radius
Radius of the sphere.
std::chrono::system_clock::time_point point
Representation of a point in time.
Center at zero point sphere.
fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:48