geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
CubicSpline< T, N, Derived > Class Template Reference

Base class for cubic splines. More...

#include <geomc/shape/CubicSpline.h>

Inheritance diagram for CubicSpline< T, N, Derived >:
Dimensional< T, N >

Public Types

using elem_t
 The coordinate type of this object.
 
using point_t
 The type of a point in this object's space.
 

Public Member Functions

constexpr Vec< T, Nacceleration (T s) const
 Compute the second derivative (acceleration) of the spline at a given parameter value.
 
constexpr Rect< T, Nbounds () const
 Compute the bounding box of the spline.
 
constexpr operator PolynomialSpline< T, N > () const
 Convert this spline to its coefficient representation.
 
template<CubicSplineObject< T, N > Spline>
requires (not std::same_as<Spline, PolynomialSpline<T,N>>)
constexpr operator Spline () const
 Convert to another type of cubic spline.
 
constexpr Vec< T, Noperator() (T s) const
 Evaluate the spline at a given parameter value.
 
constexpr Vec< T, Nvelocity (T s) const
 Compute the derivative (velocity) of the spline at a given parameter value.
 

Static Public Attributes

static constexpr index_t N
 The dimension of this object.
 

Detailed Description

template<typename T, index_t N, typename Derived>
class geom::CubicSpline< T, N, Derived >

Base class for cubic splines.

Member Typedef Documentation

◆ point_t

using point_t
inherited

The type of a point in this object's space.

An N-vector of T if N > 1, otherwise a T.


The documentation for this class was generated from the following file: