IMP logo

IMP::algebra::Segment3D Class Reference


Detailed Description

It does what is says.
Note:
This class is a geometric primitive. Also, this class is not not initialized by its default constructor.
Inherited by IMP::display::SegmentGeometry.


Public Member Functions

VectorD< 3 > get_direction () const
 Get a normalized direction vector pointing from get_point(0) to get_point(1).
double get_length () const
VectorD< 3 > get_middle_point () const
const VectorD< 3 > & get_point (unsigned int i) const
 Get the start=0/end=1 point of the segment.
 Segment3D (const VectorD< 3 > &start, const VectorD< 3 > &end)

Related Functions

(Note that these are not member functions.)

double get_distance (const Segment3D &a, const Segment3D &b)
 Get the distance between two segments.
double get_distance (const Segment3D &s, const VectorD< 3 > &p)
 Get the distance between a segment and a point.
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 get_shortest_segment (const Segment3D &sa, const Segment3D &sb)

Friends And Related Function Documentation

double get_distance ( const Segment3D a,
const Segment3D b 
) [related]

Get the distance between two segments.

double get_distance ( const Segment3D s,
const VectorD< 3 > &  p 
) [related]

Get the distance between a segment and a point.


The documentation for this class was generated from the following files:

Generated on Mon Mar 8 23:08:47 2010 for IMP by doxygen 1.5.8