GlobeEngine
geData::BSpline Class Reference

#include <BSpline.h>

Public Member Functions

 BSpline ()
 
 ~BSpline ()
 
void clear ()
 
void create (int n, int t, vmml::Vector3d *control, vmml::Vector3d *output, int num_output)
 

Constructor & Destructor Documentation

geData::BSpline::BSpline ( )
geData::BSpline::~BSpline ( )

Member Function Documentation

void geData::BSpline::clear ( )
void geData::BSpline::create ( int  n,
int  t,
vmml::Vector3d *  control,
vmml::Vector3d *  output,
int  num_output 
)

Simple b-spline curve algorithm

Parameters
n- the number of control points minus 1
t- the degree of the polynomial
control- control point array made up of point stucture
output- array in which the calculate spline points are to be put
num_output- how many points on the spline are to be calculated
t- the degree of the polynomial

Pre-conditions: n+2>t (no curve results if n+2<=t) control array contains the number of points specified by n output array is the proper size to hold num_output point structures


The documentation for this class was generated from the following files: