GCS::Line Class Reference

#include <Geo.h>

Public Member Functions

DeriVector2 CalculateNormal (const Point &p, const double *derivparam=nullptr) const override
 
virtual LineCopy () override
 
 Line ()
 
virtual int PushOwnParams (VEC_pD &pvec) override
 
virtual void ReconstructOnNewPvec (VEC_pD &pvec, int &cnt) override
 
DeriVector2 Value (double u, double du, const double *derivparam=nullptr) const override
 Value: returns point (vector) given the value of parameter. More...
 
virtual ~Line ()
 
- Public Member Functions inherited from GCS::Curve
virtual DeriVector2 CalculateNormal (const Point &p, const double *derivparam=nullptr) const =0
 
virtual CurveCopy ()=0
 
virtual int PushOwnParams (VEC_pD &pvec)=0
 
virtual void ReconstructOnNewPvec (VEC_pD &pvec, int &cnt)=0
 
virtual DeriVector2 Value (double u, double du, const double *derivparam=nullptr) const
 Value: returns point (vector) given the value of parameter. More...
 
virtual ~Curve ()
 

Public Attributes

Point p1
 
Point p2
 

Constructor & Destructor Documentation

◆ Line()

GCS::Line::Line ( )

Referenced by Copy().

◆ ~Line()

virtual GCS::Line::~Line ( )
virtual

Member Function Documentation

◆ CalculateNormal()

DeriVector2 Line::CalculateNormal ( const Point p,
const double *  derivparam = nullptr 
) const
overridevirtual

◆ Copy()

Line * Line::Copy ( void  )
overridevirtual

Implements GCS::Curve.

References Line().

◆ PushOwnParams()

◆ ReconstructOnNewPvec()

void Line::ReconstructOnNewPvec ( VEC_pD pvec,
int cnt 
)
overridevirtual

Implements GCS::Curve.

References p1, p2, GCS::Point::x, and GCS::Point::y.

◆ Value()

DeriVector2 Line::Value ( double  u,
double  du,
const double *  derivparam = nullptr 
) const
overridevirtual

Value: returns point (vector) given the value of parameter.

Parameters
uvalue of parameter
duderivative of parameter by derivparam
derivparampointer to sketch parameter to calculate the derivative for
Returns

Reimplemented from GCS::Curve.

References GCS::DeriVector2::multD(), p1, p2, GCS::DeriVector2::subtr(), and GCS::DeriVector2::sum().

Member Data Documentation

◆ p1

◆ p2


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