The concept Kinetic::FunctionKernel::Function represents a function.
| |
The number type used in describing the function;
| |
| |
Construct a constant function from a number.
|
|
| Evaluate the function at an NT. |
FunctionKernel, FunctionKernel::ConstructFunction
Several ways to create functions:
Using Kinetic::ConstructFunction:
Traits::Function_kernel::Construct_function cf= traits.function_kernel_object().construct_function_object(); Traits::Kinetic_kernel::Motion_function x= cf(0.0,1.0,2.0); Traits::Kinetic_kernel::Motion_function y= cf(0.0,1.0,2.0); Traits::Kinetic_kernel::Point_2 pt(x,y);
Using the constructor:
double coefs[]={1.0, 2.0, 3.0}; Traits::Kinetic_kernel::Motion_function z(coefs, coefs+3);
Using ring operations:
Traits::Kinetic_kernel::Motion_function z= x*z+y;