\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.7 - Kinetic Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Kinetic::FunctionKernel::Function Concept Reference

Definition

The concept Function represents a function.

See Also
FunctionKernel
FunctionKernel::ConstructFunction

Example

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;

Types

typedef unspecified_type NT
 The number type used in describing the function.
 
 Function (NT)
 Construct a constant function from a number.
 

Operations

NT operator() (NT)
 Evaluate the function at an NT.