RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fs_util.cpp
Go to the documentation of this file.
1 //
2 // File = fs_util.cpp
3 //
4 
5 #include "fs_util.h"
6 #include <iostream>
7 
8 void
9 DumpRectangCompon(double* origins, double* slopes, int num_trans_samps,
10  double x)
11 {
12  double rect_comp;
13  int n;
14 
15  for (n = 0; n < num_trans_samps; n++) {
16  rect_comp = origins[n + 1] + x * slopes[n + 1];
17  std::cout << "rect_comp[" << n << "] = " << rect_comp << std::endl;
18  }
19  return;
20 }
21 //================================================================
22 
23 void
24 pause(logical pause_enabled)
25 {
26  char input_string[20];
27  if (pause_enabled) {
28  std::cout << "enter anything to continue" << std::endl;
29  std::cin >> input_string;
30  }
31  return;
32 }
int logical
Definition: typedefs.h:4
void pause(logical pause_enabled)
Definition: fs_util.cpp:24
void DumpRectangCompon(double *origins, double *slopes, int num_trans_samps, double x)
Definition: fs_util.cpp:9