kig
#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 | calcCubicCuspThroughPoints (const std::vector< Coordinate > &points) |
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 | calcCubicNodeThroughPoints (const std::vector< Coordinate > &points) |
const CubicCartesianData | calcCubicThroughPoints (const std::vector< Coordinate > &points) |
const CubicCartesianData | calcCubicTransformation (const CubicCartesianData &data, const Transformation &t, bool &valid) |
double | calcCubicYvalue (double x, double ymin, double ymax, int root, CubicCartesianData data, bool &valid, int &numroots) |
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.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.