Loading...
Searching...
No Matches
curve_conversion.h File Reference
#include <iostream>
#include <stdexcept>
#include <vector>
#include "MathDefs.h"
#include "bernstein.h"
#include "curve_abc.h"
#include "curve_constraint.h"
Include dependency graph for curve_conversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ndcurves
 

Functions

template<typename Polynomial >
Polynomial ndcurves::polynomial_from_curve (const typename Polynomial::curve_abc_t &curve)
 Converts a cubic hermite spline or a bezier curve to a polynomial.
 
template<typename Bezier >
Bezier ndcurves::bezier_from_curve (const typename Bezier::curve_abc_t &curve)
 Converts a cubic hermite spline or polynomial of order 3 or less to a cubic bezier curve.
 
template<typename Hermite >
Hermite ndcurves::hermite_from_curve (const typename Hermite::curve_abc_t &curve)
 Converts a polynomial of order 3 or less/cubic bezier curve to a cubic hermite spline.