Open source remastering of the Freespace 2 engine
herm_spline Class Reference

#include <spline.h>

Public Member Functions

 herm_spline ()
 herm_spline (int _num_pts, vec3d *_pts[MAX_HERM_PTS], vec3d *_d_pts[MAX_HERM_PTS])
void herm_set_points (int _num_pts, vec3d *_pts[MAX_HERM_PTS], vec3d *_d_pts[MAX_HERM_PTS])
void herm_get_point (vec3d *out, float u, int k)
void herm_get_deriv (vec3d *deriv, float u, int k)
void herm_render (int divs, color *c)

Public Attributes

vec3d pts [MAX_HERM_PTS]
vec3d d_pts [MAX_HERM_PTS]
int num_pts

Detailed Description

Definition at line 53 of file spline.h.

Constructor & Destructor Documentation

herm_spline::herm_spline ( )

Definition at line 170 of file spline.cpp.

herm_spline::herm_spline ( int  _num_pts,
vec3d _pts[MAX_HERM_PTS],
vec3d _d_pts[MAX_HERM_PTS] 

Definition at line 183 of file spline.cpp.

Member Function Documentation

void herm_spline::herm_get_deriv ( vec3d deriv,
float  u,
int  k 

Definition at line 233 of file spline.cpp.

void herm_spline::herm_get_point ( vec3d out,
float  u,
int  k 

Definition at line 208 of file spline.cpp.

void herm_spline::herm_render ( int  divs,
color c 

Definition at line 258 of file spline.cpp.

void herm_spline::herm_set_points ( int  _num_pts,
vec3d _pts[MAX_HERM_PTS],
vec3d _d_pts[MAX_HERM_PTS] 

Definition at line 189 of file spline.cpp.

Member Data Documentation

vec3d herm_spline::d_pts[MAX_HERM_PTS]

Definition at line 56 of file spline.h.

int herm_spline::num_pts

Definition at line 57 of file spline.h.

vec3d herm_spline::pts[MAX_HERM_PTS]

Definition at line 55 of file spline.h.

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