Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Geometry::BicubicInternal Namespace Reference

Classes

struct  CubicBSplineKernel
 
struct  CubicCatmulRomKernel
 
struct  LinearKernel
 

Functions

template<class T >
clamp (T a, T lower, T upper)
 

Function Documentation

◆ clamp()

template<class T >
T Slic3r::Geometry::BicubicInternal::clamp ( a,
lower,
upper 
)
inline
185 {
186 return (a < lower) ? lower :
187 (a > upper) ? upper : a;
188}

Referenced by Slic3r::Geometry::bicubic_interpolate(), and Slic3r::Geometry::cubic_interpolate().

+ Here is the caller graph for this function: