IMP logo
IMP Reference Guide  2.13.0
The Integrative Modeling Platform
shortest_segment.h File Reference

Get the shortest segment connecting two geometric objects. Copyright 2007-2020 IMP Inventors. All rights reserved. More...

#include <IMP/algebra/algebra_config.h>
#include "Segment3D.h"
#include <IMP/types.h>
+ Include dependency graph for shortest_segment.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 
 IMP::algebra
 General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP modules.
 

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.

Segment3D IMP::algebra::get_shortest_segment (const Segment3D &s, const Vector3D &p)
 
Segment3D IMP::algebra::get_shortest_segment (const Segment3D &sa, const Segment3D &sb)
 

Detailed Description

Get the shortest segment connecting two geometric objects. Copyright 2007-2020 IMP Inventors. All rights reserved.

Definition in file shortest_segment.h.