Span Class Reference

#include <Curve.h>

Public Member Functions

double GetArea () const
 
void GetBox (CBox2D &box)
 
Point GetVector (double fraction) const
 
double IncludedAngle () const
 
void Intersect (const Span &s, std::list< Point > &pts) const
 
double Length () const
 
Point MidParam (double param) const
 
Point MidPerim (double d) const
 
Point NearestPoint (const Point &p) const
 
Point NearestPoint (const Span &p, double *d=NULL) const
 
bool On (const Point &p, double *t=NULL) const
 
 Span ()
 
 Span (const Point &p, const CVertex &v, bool start_span=false)
 

Public Attributes

Point m_p
 
bool m_start_span
 
CVertex m_v
 

Constructor & Destructor Documentation

◆ Span() [1/2]

Span::Span ( )

◆ Span() [2/2]

Span::Span ( const Point p,
const CVertex v,
bool  start_span = false 
)

Member Function Documentation

◆ GetArea()

double Span::GetArea ( ) const

◆ GetBox()

void Span::GetBox ( CBox2D box)

◆ GetVector()

Point Span::GetVector ( double  fraction) const

returns the direction vector at point which is 0-1 along span

References CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, and MidParam().

Referenced by CCurve::Offset(), and CCurve::OffsetForward().

◆ IncludedAngle()

double Span::IncludedAngle ( ) const

◆ Intersect()

void Span::Intersect ( const Span s,
std::list< Point > &  pts 
) const

◆ Length()

◆ MidParam()

Point Span::MidParam ( double  param) const

returns a point which is 0-1 along span

References IncludedAngle(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, draftguitools.gui_annotationstyleeditor::param, and Point::Rotate().

Referenced by GetVector().

◆ MidPerim()

Point Span::MidPerim ( double  d) const

returns a point which is 0-d along span

References Point::length(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, and Point::normalize().

◆ NearestPoint() [1/2]

Point Span::NearestPoint ( const Point p) const

References Point::dist(), CVertex::m_p, m_p, and m_v.

Referenced by CCurve::NearestPoint(), NearestPoint(), and On().

◆ NearestPoint() [2/2]

Point Span::NearestPoint ( const Span p,
double *  d = NULL 
) const

References NearestPoint().

◆ On()

bool Span::On ( const Point p,
double *  t = NULL 
) const

References NearestPoint().

Member Data Documentation

◆ m_p

◆ m_start_span

bool Span::m_start_span

◆ m_v


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