kig
#include <cubic-common.h>
Public Member Functions | |
CubicCartesianData () | |
CubicCartesianData (double a000, double a001, double a002, double a011, double a012, double a022, double a111, double a112, double a122, double a222) | |
CubicCartesianData (const double incoeffs[10]) | |
void | normalize () |
bool | valid () const |
Static Public Member Functions | |
static CubicCartesianData | invalidData () |
Public Attributes | |
double | coeffs [10] |
Detailed Description
This class represents an equation of a cubic in the form (in homogeneous coordinates, ), .
The coefficients are stored in lessicografic order.
Definition at line 31 of file cubic-common.h.
Constructor & Destructor Documentation
|
explicit |
Default Constructor.
Constructs a new CubicCartesianData, with all the coeffs initialized to 0.
Definition at line 32 of file cubic-common.cc.
|
inline |
Constructor.
Construct a new CubicCartesianData, with the given values as coeffs.
Definition at line 48 of file cubic-common.h.
CubicCartesianData::CubicCartesianData | ( | const double | incoeffs[10] | ) |
Definition at line 37 of file cubic-common.cc.
Member Function Documentation
|
static |
Create an invalid CubicCartesianData.
This is a special state of a CubicCartesianData that signals that something went wrong..
- See also
- CubicCartesianData::valid
We represent an invalid CubicCartesianData by setting all the coeffs to positive or negative infinity. This is handy, since it doesn't require us to adapt most of the functions, it doesn't need extra space, and most of the times that we should get an invalid CubicCartesianData, we get one automatically..
Definition at line 532 of file cubic-common.cc.
void CubicCartesianData::normalize | ( | ) |
Definition at line 44 of file cubic-common.cc.
bool CubicCartesianData::valid | ( | ) | const |
Return whether this is a valid CubicCartesianData.
- See also
- CubicCartesianData::invalidData
Definition at line 539 of file cubic-common.cc.
Member Data Documentation
double CubicCartesianData::coeffs[10] |
Definition at line 34 of file cubic-common.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.