IMP  2.0.0
The Integrative Modeling Platform
shortest_segment.h
Go to the documentation of this file.
1 /**
2  * \file IMP/algebra/shortest_segment.h
3  * \brief predicates implemented using CGAL
4  * Copyright 2007-2013 IMP Inventors. All rights reserved.
5 */
6 
7 #ifndef IMPALGEBRA_SHORTEST_SEGMENT_H
8 #define IMPALGEBRA_SHORTEST_SEGMENT_H
9 
10 #include <IMP/algebra/algebra_config.h>
11 #include "Segment3D.h"
12 #include <IMP/base/types.h>
13 
14 IMPALGEBRA_BEGIN_NAMESPACE
15 
16 /** \name Shortest segments
17 
18  These methods return the shortest segment connecting two geometric
19  objects. Such segments can be used to give the direction of the
20  derivative of the distance between the two objects. The 0 point on
21  the segment is in the first passed object and the 1 point is in
22  the second.
23 */
24 /** \relatesalso Segment3D
25  \relatesalso Vector3D
26 */
27 IMPALGEBRAEXPORT
28 Segment3D get_shortest_segment(const Segment3D &s,
29  const Vector3D &p);
30 
31 /** \relatesalso Segment3D
32  */
33 IMPALGEBRAEXPORT
34 Segment3D get_shortest_segment(const Segment3D &sa,
35  const Segment3D &sb);
36 
37 IMPALGEBRA_END_NAMESPACE
38 
39 #endif /* IMPALGEBRA_SHORTEST_SEGMENT_H */