Orbiter 2022
Combinatorial Objects
parametric_curve_point.cpp
Go to the documentation of this file.
1/*
2 * parametric_curve_point.cpp
3 *
4 * Created on: Apr 16, 2020
5 * Author: betten
6 */
7
8
9
10
11#include "foundations.h"
12
13
14using namespace std;
15
16
17namespace orbiter {
18namespace layer1_foundations {
19namespace graphics {
20
21
23{
24 t = 0;
26}
27
29{
30
31}
32
33void parametric_curve_point::init(double t, int f_is_valid,
34 double *x, int nb_dimensions, int verbose_level)
35{
36 int f_v = (verbose_level >= 1);
37 int i;
38
39 if (f_v) {
40 cout << "parametric_curve_point::init" << endl;
41 }
44 for (i = 0; i < nb_dimensions; i++) {
45 coords.push_back(x[i]);
46 }
47 if (f_v) {
48 for (i = 0; i < (int) coords.size(); i++) {
49 cout << coords[i];
50 if (i < (int) coords.size() - 1) {
51 cout << ",";
52 }
53 }
54 cout << endl;
55 }
56 if (f_v) {
57 cout << "parametric_curve_point::init done" << endl;
58 }
59}
60
61
62
63}}}
64
65
void init(double t, int f_is_valid, double *x, int nb_dimensions, int verbose_level)
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects