38 #ifndef FCL_NARROWPHASE_DETAIL_SPHERETRIANGLE_H 39 #define FCL_NARROWPHASE_DETAIL_SPHERETRIANGLE_H 41 #include "fcl/geometry/shape/sphere.h" 42 #include "fcl/narrowphase/contact_point.h" 52 S segmentSqrDistance(
const Vector3<S>& from,
const Vector3<S>& to,
const Vector3<S>& p, Vector3<S>& nearest);
56 bool projectInTriangle(
const Vector3<S>& p1,
const Vector3<S>& p2,
const Vector3<S>& p3,
const Vector3<S>& normal,
const Vector3<S>& p);
59 bool sphereTriangleIntersect(
const Sphere<S>& s,
const Transform3<S>& tf,
60 const Vector3<S>& P1,
const Vector3<S>& P2,
const Vector3<S>& P3, Vector3<S>* contact_points, S* penetration_depth, Vector3<S>* normal_);
63 bool sphereTriangleDistance(
const Sphere<S>& sp,
const Transform3<S>& tf,
64 const Vector3<S>& P1,
const Vector3<S>& P2,
const Vector3<S>& P3,
68 bool sphereTriangleDistance(
const Sphere<S>& sp,
const Transform3<S>& tf,
69 const Vector3<S>& P1,
const Vector3<S>& P2,
const Vector3<S>& P3,
70 S* dist, Vector3<S>* p1, Vector3<S>* p2);
73 bool sphereTriangleDistance(
const Sphere<S>& sp,
const Transform3<S>& tf1,
74 const Vector3<S>& P1,
const Vector3<S>& P2,
const Vector3<S>& P3,
const Transform3<S>& tf2,
75 S* dist, Vector3<S>* p1, Vector3<S>* p2);
80 #include "fcl/narrowphase/detail/primitive_shape_algorithm/sphere_triangle-inl.h" Main namespace.
Definition: broadphase_bruteforce-inl.h:45