• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

cubic-common.cc File Reference

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

Include dependency graph for cubic-common.cc:

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.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal