8
//! Evaluate the Bernstein polynomial of degree n, at parameter t.
10
Evaluate the Bernstein polynomial of degree n, at parameter t.
12
@param n The degree of the Bernstein basis polynomials.
13
@param t The evaluation point.
15
@return the values of the n+1 Bernstein basis of degree n.
17
INL_DECLSPEC_DLL t_double* Bernstein(t_int n, t_double t);
19
//! Evaluate 2D Bezier curve of degree n.
21
Evaluate 2D Bezier curve of degree n.
23
@param n The degree of the Bezier curve.
25
@param xcon Array of n+1 x coordinates of control points.
26
@param ycon Array of n+1 y coordinates of control points.
27
@param xval Return the x coordinates of the Bezier curve at parameter t.
28
@param yval Return the y coordinates of the Bezier curve at parameter t.
30
INL_DECLSPEC_DLL void Bezier_XY(t_int n, t_double t, t_double xcon[], t_double ycon[], t_double *xval, t_double *yval);
32
//! Evaluate 2D Bezier curve of degree n.
34
Evaluate 2D Bezier curve of degree n.
36
@param n The degree of the Bezier curve.
38
@param xcon Array of n+1 x coordinates of control points.
39
@param ycon Array of n+1 y coordinates of control points.
40
@param ycon Array of n+1 z coordinates of control points.
41
@param xval Return the x coordinates of the Bezier curve at parameter t.
42
@param yval Return the y coordinates of the Bezier curve at parameter t.
43
@param yval Return the z coordinates of the Bezier curve at parameter t.
45
INL_DECLSPEC_DLL void Bezier_XYZ(t_int n, t_double t, t_double xcon[], t_double ycon[], t_double zcon[], t_double *xval, t_double *yval, t_double *zval);