UNIVERS
15.3
UNIVERS base processing software API
|
#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 U3dBspl3AbstractMatrix * | m_bm |
double | m_rv [4] |
Simple base spline curve object
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.
|
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.
|
inlinevirtual |
Destruct object
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
|
inline |
Return spline curve coefficients (c[0]+c[1]t+c[2]t^2+c[3]t^3)
|
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
|
protected |
Base spline matrix pointer.
|
protected |
Result simple vector (m_rv = m_bm*(control_points))