38 #ifndef FCL_DISTANCERESULT_INL_H 39 #define FCL_DISTANCERESULT_INL_H 41 #include "fcl/narrowphase/distance_result.h" 48 struct DistanceResult<double>;
52 DistanceResult<S>::DistanceResult(S min_distance_)
53 : min_distance(min_distance_),
71 if(min_distance > distance)
73 min_distance = distance;
92 if(min_distance > distance)
94 min_distance = distance;
99 nearest_points[0] = p1;
100 nearest_points[1] = p2;
105 template <
typename S>
111 o1 = other_result.
o1;
112 o2 = other_result.
o2;
113 b1 = other_result.
b1;
114 b2 = other_result.
b2;
121 template <
typename S>
124 min_distance = std::numeric_limits<S>::max();
S min_distance
minimum distance between two objects. if two objects are in collision, min_distance <= 0...
Definition: distance_result.h:56
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
distance result
Definition: distance_request.h:48
int b1
information about the nearest point in object 1 if object 1 is mesh or point cloud, it is the triangle or point id if object 1 is geometry shape, it is NONE (-1), if object 1 is octree, it is the id of the cell
Definition: distance_result.h:71
const CollisionGeometry< S > * o2
collision object 2
Definition: distance_result.h:65
The geometry for the object for collision or distance computation.
Definition: collision_geometry.h:59
int b2
information about the nearest point in object 2 if object 2 is mesh or point cloud, it is the triangle or point id if object 2 is geometry shape, it is NONE (-1), if object 2 is octree, it is the id of the cell
Definition: distance_result.h:77
const CollisionGeometry< S > * o1
collision object 1
Definition: distance_result.h:62
Vector3< S > nearest_points[2]
nearest points
Definition: distance_result.h:59