1st order bezier curve More...
#include <BezierCurve.h>
Public Member Functions | |
BezierCurve1 (Point3d in_P0, Point3d in_P1) | |
![]() | |
virtual | ~BezierCurve () |
destructor | |
int | subdiv (double in_param, Point3d *out_left_xyz, Point3d *out_right_xyz) |
interface function to perform Bezier curve sub-division | |
bool | is_ctrl_pts_colinear () |
returns if the control points are colinear | |
void | get_all_ctrl_pts (Point3d *out_ctrl_pts) |
get all the control points of the curve | |
void | get_ctrl_pt (int index, Point3d &out_pt) |
get the i'th control point of the curve | |
![]() | |
int | eval (Point1d in_t, Point3d &out_xyz) |
int | order (void) |
int | deriv1 (Point1d in_t, Point3d &out_xyz) |
void | deriv1_fd (const Point1d in_t, Point3d &dxyz_dt, double step=1.0e-3) |
Evaluate first derivative numerically by finite difference. | |
Private Member Functions | |
BezierCurve1 () | |
1st order bezier curve | |
virtual int | v_order (void) |
virtual int | v_subdiv (double in_param, Point3d *out_left_xyz, Point3d *out_right_xyz) |
calculates sub-division and returns new sub-curves | |
virtual bool | v_is_ctrl_pts_colinear () |
return if all control points are co-linear | |
Additional Inherited Members | |
![]() | |
void | checkInputParam (double in_t) |
check if input parameter is within range More... | |
![]() | |
Point3d * | m_ctrl_pts_ |
control point data container | |
1st order bezier curve