UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
U3dSimpleBspl3Curve Class Reference

#include <u3d_bspl3_primitives.hpp>

Public Member Functions

 U3dSimpleBspl3Curve ()
 
 U3dSimpleBspl3Curve (const U3dBspl3AbstractMatrix *bm, const double(&cp)[4])
 
virtual ~U3dSimpleBspl3Curve ()
 
void construct (const U3dBspl3AbstractMatrix *bm, const double(&cp)[4])
 
double get (double p) const
 
double getSp (double p) const
 
double getSpp (double p) const
 
void getCoeffs (double(&c)[4]) const
 
double getLineDeviation (double k, double b, double p)
 
 U3dSimpleBspl3Curve (const U3dBspl3AbstractMatrix *bm, const double(&cp)[4])
 
virtual ~U3dSimpleBspl3Curve ()
 
double get (double p) const
 
double getSp (double p) const
 
double getSpp (double p) const
 
void getCoeffs (double(&c)[4]) const
 
double getLineDeviation (double k, double b, double p)
 

Protected Attributes

const U3dBspl3AbstractMatrixm_bm
 
double m_rv [4]
 

Detailed Description

Simple base spline curve object

Constructor & Destructor Documentation

U3dSimpleBspl3Curve::U3dSimpleBspl3Curve ( )

Default constructor, empty object.

U3dSimpleBspl3Curve::U3dSimpleBspl3Curve ( const U3dBspl3AbstractMatrix bm,
const double(&)  cp[4] 
)

Default constructor with base spline matrix pointer and control points provided. Base matrix is not being copied while construction, just pointer.

virtual U3dSimpleBspl3Curve::~U3dSimpleBspl3Curve ( )
inlinevirtual

Destruct object

U3dSimpleBspl3Curve::U3dSimpleBspl3Curve ( const U3dBspl3AbstractMatrix bm,
const double(&)  cp[4] 
)

Default constructor with base spline matrix pointer and control points provided. Base matrix is not being copied while construction, just pointer.

virtual U3dSimpleBspl3Curve::~U3dSimpleBspl3Curve ( )
inlinevirtual

Destruct object

Member Function Documentation

void U3dSimpleBspl3Curve::construct ( const U3dBspl3AbstractMatrix bm,
const double(&)  cp[4] 
)

Construct result spline vector m_rv

double U3dSimpleBspl3Curve::get ( double  p) const

Return spline value for provided parameter S=S(p), p=0..1

double U3dSimpleBspl3Curve::get ( double  p) const

Return spline value for provided parameter S=S(p), p=0..1

void U3dSimpleBspl3Curve::getCoeffs ( double(&)  c[4]) const
inline

Return spline curve coefficients (c[0]+c[1]t+c[2]t^2+c[3]t^3)

void U3dSimpleBspl3Curve::getCoeffs ( double(&)  c[4]) const
inline

Return spline curve coefficients (c[0]+c[1]t+c[2]t^2+c[3]t^3)

double U3dSimpleBspl3Curve::getLineDeviation ( double  k,
double  b,
double  p 
)

Get line deviation between l(p)=kp+b and spline

double U3dSimpleBspl3Curve::getLineDeviation ( double  k,
double  b,
double  p 
)

Get line deviation between l(p)=kp+b and spline

double U3dSimpleBspl3Curve::getSp ( double  p) const

Return partial derivative of spline by p

double U3dSimpleBspl3Curve::getSp ( double  p) const

Return partial derivative of spline by p

double U3dSimpleBspl3Curve::getSpp ( double  p) const

Return second order partial derivative by p and p

double U3dSimpleBspl3Curve::getSpp ( double  p) const

Return second order partial derivative by p and p

Member Data Documentation

const U3dBspl3AbstractMatrix * U3dSimpleBspl3Curve::m_bm
protected

Base spline matrix pointer.

double U3dSimpleBspl3Curve::m_rv
protected

Result simple vector (m_rv = m_bm*(control_points))


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