-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.h
More file actions
21 lines (20 loc) · 674 Bytes
/
Copy pathUtil.h
File metadata and controls
21 lines (20 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef UTIL_H
#define UTIL_H
#include <set>
#include <string>
#include <vector>
double transformz(double z, int nlayers, std::vector<double> &targz,
double offset0 = 0., double offset1 = 0.);
void parserUInt(const char *cstr, std::vector<int> &value);
void parserDouble(const char *cstr, std::vector<double> &value);
template <typename T>
void printVector(char *str, const char *format, std::vector<T> values) {
int pos = 0;
for (int i = 0; i < values.size(); ++i) {
int len = sprintf(str + pos, format, values[i]);
pos += len;
}
}
std::string printComposite(std::set<int> value);
void transform(std::vector<double> &p, double AoA);
#endif