kig
cubic-common.cc File Reference
#include "cubic-common.h"
#include "kignumerics.h"
#include "kigtransform.h"
#include <config-kig.h>

Go to the source code of this file.
Functions | |
| const CubicCartesianData | calcCubicThroughPoints (const std::vector< Coordinate > &points) |
| const CubicCartesianData | calcCubicCuspThroughPoints (const std::vector< Coordinate > &points) |
| const CubicCartesianData | calcCubicNodeThroughPoints (const std::vector< Coordinate > &points) |
| double | calcCubicYvalue (double x, double ymin, double ymax, int root, CubicCartesianData data, bool &valid, int &numroots) |
| const Coordinate | calcCubicLineIntersect (const CubicCartesianData &cu, const LineData &l, int root, bool &valid) |
| void | calcCubicLineRestriction (CubicCartesianData data, Coordinate p, Coordinate v, double &a, double &b, double &c, double &d) |
| const CubicCartesianData | calcCubicTransformation (const CubicCartesianData &data, const Transformation &t, bool &valid) |
| bool | operator== (const CubicCartesianData &lhs, const CubicCartesianData &rhs) |
Function Documentation
| const CubicCartesianData calcCubicCuspThroughPoints | ( | const std::vector< Coordinate > & | points | ) |
Definition at line 153 of file cubic-common.cc.
| const Coordinate calcCubicLineIntersect | ( | const CubicCartesianData & | cu, | |
| const LineData & | l, | |||
| int | root, | |||
| bool & | valid | |||
| ) |
Definition at line 375 of file cubic-common.cc.
| void calcCubicLineRestriction | ( | CubicCartesianData | data, | |
| Coordinate | p, | |||
| Coordinate | v, | |||
| double & | a, | |||
| double & | b, | |||
| double & | c, | |||
| double & | d | |||
| ) |
Definition at line 395 of file cubic-common.cc.
| const CubicCartesianData calcCubicNodeThroughPoints | ( | const std::vector< Coordinate > & | points | ) |
Definition at line 247 of file cubic-common.cc.
| const CubicCartesianData calcCubicThroughPoints | ( | const std::vector< Coordinate > & | points | ) |
This function calcs a cartesian cubic equation such that the given points are on the cubic.
There can be at most 9 and at least 2 point. If there are less than 9, than the coefficients will be chosen to 1.0 if possible
Definition at line 58 of file cubic-common.cc.
| const CubicCartesianData calcCubicTransformation | ( | const CubicCartesianData & | data, | |
| const Transformation & | t, | |||
| bool & | valid | |||
| ) |
Definition at line 438 of file cubic-common.cc.
| double calcCubicYvalue | ( | double | x, | |
| double | ymin, | |||
| double | ymax, | |||
| int | root, | |||
| CubicCartesianData | data, | |||
| bool & | valid, | |||
| int & | numroots | |||
| ) |
Definition at line 345 of file cubic-common.cc.
| bool operator== | ( | const CubicCartesianData & | lhs, | |
| const CubicCartesianData & | rhs | |||
| ) |
Definition at line 524 of file cubic-common.cc.
KDE 4.0 API Reference