81 static double comp(
const T &val,
int i);
Interpolation curve class for double->double and double->Vec3D.
InterpType
Supported interpolation types.
void preparePoints()
Prepares points for evaluation (sorts and computes boundaries, clamps extrema)
T getValue(double param) const
Evaluates curve and returns full value.
static bool cvLessThan(const CV &cv1, const CV &cv2)
CV Parameter ordering (cv1._pos < cv2._pos)
void addPoint(double position, const T &val, InterpType type)
Adds a point to the curve.
std::vector< CV > _cvData
static double comp(const T &val, int i)
Returns a component of the given value.
double getChannelValue(double param, int channel) const
CV getLowerBoundCV(double param) const
static bool interpTypeValid(InterpType interp)
Returns whether the given interpolation type is supported.
void clampCurveSegment(const T &delta, T &d1, T &d2)
Performs hermite derivative clamping in canonical space.
CV(double pos, const T &val, InterpType type)