/** * \file IMP/algebra/shortest_segment.h * \brief predicates implemented using CGAL * Copyright 2007-2013 IMP Inventors. All rights reserved. */ #ifndef IMPALGEBRA_SHORTEST_SEGMENT_H #define IMPALGEBRA_SHORTEST_SEGMENT_H #include #include "Segment3D.h" #include IMPALGEBRA_BEGIN_NAMESPACE /** \name Shortest segments These methods return the shortest segment connecting two geometric objects. Such segments can be used to give the direction of the derivative of the distance between the two objects. The 0 point on the segment is in the first passed object and the 1 point is in the second. */ /** \relatesalso Segment3D \relatesalso Vector3D */ IMPALGEBRAEXPORT Segment3D get_shortest_segment(const Segment3D &s, const Vector3D &p); /** \relatesalso Segment3D */ IMPALGEBRAEXPORT Segment3D get_shortest_segment(const Segment3D &sa, const Segment3D &sb); IMPALGEBRA_END_NAMESPACE #endif /* IMPALGEBRA_SHORTEST_SEGMENT_H */