cpp/functions.h

21 lines
592 B
C
Raw Normal View History

2024-08-16 17:55:27 +00:00
#ifndef RWSIM_FUNCTIONS_H
#define RWSIM_FUNCTIONS_H
#include <vector>
2024-08-20 15:51:49 +00:00
#include <array>
#include <utility>
#include <chrono>
2024-08-16 17:55:27 +00:00
int nearest_index(const std::vector<double>&, double, int);
double lerp(const std::vector<double>&, const std::vector<double>&, double, int);
2024-08-20 15:51:49 +00:00
std::array<double, 3> spherical_to_xyz(double, double);
std::pair<double, double> xyz_to_spherical(const std::array<double, 3>& xyz);
2024-08-16 17:55:27 +00:00
std::chrono::time_point<std::chrono::system_clock> printSteps(std::chrono::time_point<std::chrono::system_clock>, std::chrono::time_point<std::chrono::system_clock>, int, int);
#endif