ICF 3.1.1.10
Technical documentation of ICF Libraries
CSplineSegmentFunction.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef imath_CSplineSegmentFunction_included
7#define imath_CSplineSegmentFunction_included
8
9
10namespace imath
11{
12
13
18{
19public:
20 // static methods
24 static double GetValueKernelAt(double alpha);
28 static double GetDerivativeKernelAt(double alpha);
29};
30
31
32// static protected inline methods
33
35{
36 return (2 * alpha - 3) * alpha * alpha + 1;
37}
38
39
41{
42 double beta = 1 - alpha;
43 return alpha * beta * beta;
44}
45
46
47} // namespace imath
48
49
50#endif // !imath_CSplineSegmentFunction_included
51
52
Helper class for calculation of splines of 3rd degree.
static double GetValueKernelAt(double alpha)
Get kernel of value normalized to range [0, 1].
static double GetDerivativeKernelAt(double alpha)
Get kernel of derivative normalized to range [0, 1].
Package with mathematical functions and algebraical primitives.

© Witold Gantzke and Kirill Lepskiy