#include <p_curve.h>

Public Member Functions | |
| p_curve (const function &x_f, const function &y_f, const color &col, double t0=0, double tf=1) | |
| Constructor. | |
| p_curve (function::double_function x_f, function::double_function y_f, const color &col, double t0=0, double tf=1) | |
| Constructor. | |
| double | x (double t) |
| double | y (double t) |
| void | dl_gen (const screen &s) |
| Display-list generator. | |
Public Attributes | |
| color | c |
| The color of the the primitive. | |
Protected Attributes | |
| function | x_function |
| function | y_function |
| double | tstart |
| double | tfinal |
This class takes two functions that accept doubles and return a double. It then samples t in [0,1] and connects the dots with straight lines
| glot::p_curve::p_curve | ( | function::double_function | x_f, | |
| function::double_function | y_f, | |||
| const color & | col, | |||
| double | t0 = 0, |
|||
| double | tf = 1 | |||
| ) | [inline] |
Constructor.
| x_f | - the parametric definition of x | |
| y_f | - the parametric definition of y | |
| col | - the color of the curve | |
| t0 | - the beginning of the parameterization | |
| tf | - the end of the parameterization |
| void glot::p_curve::dl_gen | ( | const screen & | s | ) | [virtual] |
Display-list generator.
| s | - the screen specs |
Implements glot::primitive.
| double glot::p_curve::x | ( | double | t | ) |
| double glot::p_curve::y | ( | double | t | ) |
double glot::p_curve::tfinal [protected] |
double glot::p_curve::tstart [protected] |
function glot::p_curve::x_function [protected] |
function glot::p_curve::y_function [protected] |
1.5.8