Open source remastering of the Freespace 2 engine
bez_spline Class Reference

#include <spline.h>

Public Member Functions

 bez_spline ()
 bez_spline (int _num_pts, vec3d *_pts[MAX_BEZ_PTS])
void bez_set_points (int _num_pts, vec3d *_pts[MAX_BEZ_PTS])
float BEZ (int k, int n, float u)
void bez_get_point (vec3d *out, float u)
void bez_render (int divs, color *c)

Public Attributes

vec3d pts [MAX_BEZ_PTS]
int num_pts

Detailed Description

Definition at line 28 of file spline.h.

Constructor & Destructor Documentation

bez_spline::bez_spline ( )

Definition at line 53 of file spline.cpp.

bez_spline::bez_spline ( int  _num_pts,
vec3d _pts[MAX_BEZ_PTS] 

Definition at line 65 of file spline.cpp.

Member Function Documentation

float bez_spline::BEZ ( int  k,
int  n,
float  u 

Definition at line 87 of file spline.cpp.

void bez_spline::bez_get_point ( vec3d out,
float  u 

Definition at line 97 of file spline.cpp.

void bez_spline::bez_render ( int  divs,
color c 

Definition at line 127 of file spline.cpp.

void bez_spline::bez_set_points ( int  _num_pts,
vec3d _pts[MAX_BEZ_PTS] 

Definition at line 71 of file spline.cpp.

Member Data Documentation

int bez_spline::num_pts

Definition at line 31 of file spline.h.

vec3d bez_spline::pts[MAX_BEZ_PTS]

Definition at line 30 of file spline.h.

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