kig
CubicCartesianData Class Reference
#include <cubic-common.h>
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.
Public Member Functions | |
| CubicCartesianData (const double incoeffs[10]) | |
| CubicCartesianData (double a000, double a001, double a002, double a011, double a012, double a022, double a111, double a112, double a122, double a222) | |
| CubicCartesianData () | |
| void | normalize () |
| bool | valid () const |
Static Public Member Functions | |
| static CubicCartesianData | invalidData () |
Public Attributes | |
| double | coeffs [10] |
Constructor & Destructor Documentation
| CubicCartesianData::CubicCartesianData | ( | ) | [explicit] |
Default Constructor.
Constructs a new CubicCartesianData, with all the coeffs initialized to 0.
Definition at line 32 of file cubic-common.cc.
| CubicCartesianData::CubicCartesianData | ( | double | a000, | |
| double | a001, | |||
| double | a002, | |||
| double | a011, | |||
| double | a012, | |||
| double | a022, | |||
| double | a111, | |||
| double | a112, | |||
| double | a122, | |||
| double | a222 | |||
| ) | [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
| CubicCartesianData CubicCartesianData::invalidData | ( | ) | [static] |
Create an invalid CubicCartesianData.
This is a special state of a CubicCartesianData that signals that something went wrong..
- See also:
- CubicCartesianData::valid
For internal use only.
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:
KDE 4.2 API Reference