24 #ifndef PXR_BASE_GF_LINE2D_H
25 #define PXR_BASE_GF_LINE2D_H
84 return _p0 == l._p0 && _dir == l._dir;
90 return ! (*
this ==
r);
116 double *t1 =
nullptr,
double *t2 =
nullptr);
120 #endif // PXR_BASE_GF_LINE2D_H
double Normalize(double eps=GF_MIN_VECTOR_LENGTH)
bool operator!=(const GfLine2d &r) const
GF_API GfVec2d FindClosestPoint(const GfVec2d &point, double *t=NULL) const
GF_API bool GfFindClosestPoints(const GfLine2d &l1, const GfLine2d &l2, GfVec2d *p1=nullptr, GfVec2d *p2=nullptr, double *t1=nullptr, double *t2=nullptr)
GfLine2d(const GfVec2d &p0, const GfVec2d &dir)
Construct a line from a point and a direction.
double Set(const GfVec2d &p0, const GfVec2d &dir)
GfVec2d GetPoint(double t) const
const GfVec2d & GetDirection() const
Return the normalized direction of the line.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
GfLine2d()
The default constructor leaves line parameters undefined.
GF_API friend bool GfFindClosestPoints(const GfLine2d &, const GfLine2d &, GfVec2d *, GfVec2d *, double *, double *)
bool operator==(const GfLine2d &l) const