OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Spline Namespace Reference

Functions

template<class PointType >
constexpr PointType CalculateTangent (const PointType &p0, const PointType &p1, const PointType &p2, const double a=0.0, const double b=0.0) noexcept
 
template<class PointType >
constexpr PointType Hermite (const PointType &p0, const PointType &p1, const PointType &m0, const PointType &m1, const double t) noexcept
 
template<class PointType >
constexpr PointType CatmullRom (const PointType &p0, const PointType &p1, const PointType &p2, const PointType &p3, const double t) noexcept
 

Function Documentation

◆ CalculateTangent()

template<class PointType >
constexpr PointType s3d::Spline::CalculateTangent ( const PointType &  p0,
const PointType &  p1,
const PointType &  p2,
const double  a = 0.0,
const double  b = 0.0 
)
inlineconstexprnoexcept

◆ CatmullRom()

template<class PointType >
constexpr PointType s3d::Spline::CatmullRom ( const PointType &  p0,
const PointType &  p1,
const PointType &  p2,
const PointType &  p3,
const double  t 
)
inlineconstexprnoexcept

◆ Hermite()

template<class PointType >
constexpr PointType s3d::Spline::Hermite ( const PointType &  p0,
const PointType &  p1,
const PointType &  m0,
const PointType &  m1,
const double  t 
)
inlineconstexprnoexcept