Thomas FORGIONE 0c7ad226e0 Documentation
2015-03-01 17:50:06 +01:00

43 lines
1.0 KiB
C++

#ifndef BASE_HPP
#define BASE_HPP
#include <vector>
#include "Vector.hpp"
namespace geo
{
// Forward declaration of class Spline
template<typename... Types>
class Spline;
//////////////////////////////////////////////////////////////////
/// \brief Base function for splines
///
/// \param j Number of the base function for the spline
///
/// \param n Degree of the spline
///
/// \param t Time when the base function in computed. Must be between 0 and 1
///
/// \param nodes Vector of nodes
///
/// \return the value of the base function in t
///
//////////////////////////////////////////////////////////////////
float base(int j, int n, float t, std::vector<float> const& nodes);
//////////////////////////////////////////////////////////////////
/// \relates Spline
/// \brief Compute the length of a spline
///
/// \param spline Spline to compute the length.
//////////////////////////////////////////////////////////////////
float splineLenght(Spline<Vector3<float>, float> const& spline);
} // end namespace geo
#include "Spline.hpp"
#endif // BASE_HPP