
Basic type: 3D line segment. More...
#include <lineSeg.h>
Public Member Functions  
GfLineSeg ()  
The default constructor leaves line parameters undefined.  
GfLineSeg (const GfVec3d &p0, const GfVec3d &p1)  
Construct a line segment that spans two points.  
GfVec3d  GetPoint (double t) const 
Return the point on the segment specified by the parameter t.  
const GfVec3d &  GetDirection () const 
Return the normalized direction of the line.  
double  GetLength () const 
Return the length of the line.  
GF_API GfVec3d  FindClosestPoint (const GfVec3d &point, double *t=NULL) const 
Returns the point on the line that is closest to point .  
bool  operator== (const GfLineSeg &l) const 
Componentwise equality test.  
bool  operator!= (const GfLineSeg &r) const 
Componentwise inequality test.  
Friends  
GF_API friend bool  GfFindClosestPoints (const GfLine &, const GfLineSeg &, GfVec3d *, GfVec3d *, double *, double *) 
Computes the closets points on line and seg .  
GF_API friend bool  GfFindClosestPoints (const GfLineSeg &, const GfLineSeg &, GfVec3d *, GfVec3d *, double *, double *) 
Computes the closets points on two line segments, seg1 and seg2 .  
Basic type: 3D line segment.
This class represents a threedimensional line segment in space.

inline 
Returns the point on the line that is closest to point
.
If t
is not NULL
, it will be set to the parametric distance along the line of the closest point.

inline 

inline 

inline 

inline 

inline 

friend 
Computes the closets points on line
and seg
.
The two points are returned in p1
and p2
. The parametric distances of p1
and p2
along the line and segment are returned in t1
and t2
.
This returns false
if the lines were close enough to parallel that no points could be computed; in this case, the other return values are undefined.

friend 
Computes the closets points on two line segments, seg1
and seg2
.
The two points are returned in p1
and p2
. The parametric distances of p1
and p2
along the segments are returned in t1
and t2
.
This returns false
if the lines were close enough to parallel that no points could be computed; in this case, the other return values are undefined.