From e521e9fcd8ee755ca7e77447fb48551acdbd52b4 Mon Sep 17 00:00:00 2001 From: Adam Paquette Date: Thu, 29 Nov 2018 16:16:36 -0700 Subject: [PATCH] Basic function definitions and includes --- CMakeLists.txt | 1 + include/eal.h | 15 +++++++++++++++ src/eal.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 include/eal.h create mode 100644 src/eal.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b7d4f4..73b480f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ set(CMAKE_CXX_STANDARD 11) # Library setup add_library(usgsephem SHARED src/TestObject.cpp + src/eal.cpp ) set_target_properties(usgsephem PROPERTIES VERSION ${PROJECT_VERSION} diff --git a/include/eal.h b/include/eal.h new file mode 100644 index 0000000..8ea9656 --- /dev/null +++ b/include/eal.h @@ -0,0 +1,15 @@ +#ifndef EAL_H +#define EAL_H + +#include +#include + +using namespace std; + +vector getPosition(vector> coords, vector coeffs, char *interp, double time); +vector getVelocity(vector> coords, vector coeffs, char *interp, double time, bool interpolation); + +vector getPosition(vector coeffs, char *interp, double time); +vector getVelocity(vector coeffs, char *interp, double time, bool interpolation); + +#endif // EAL_H diff --git a/src/eal.cpp b/src/eal.cpp new file mode 100644 index 0000000..b523c36 --- /dev/null +++ b/src/eal.cpp @@ -0,0 +1,49 @@ +#include "eal.h" + +// Positional Functions + +// Position Data Functions +vector getPosition(vector> coords, vector coeffs, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +vector getVelocity(vector> coords, vector coeffs, char *interp, double time, bool interpolation) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +// Postion Function Functions +vector getPosition(vector coeffs, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +vector getVelocity(vector coeffs, char *interp, double time, bool interpolation) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +// Rotation Data Functions + +// Rotation Data Functions +vector getRotation(char *from, char *to, vector> rotations, vector times, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +vector getAngularVelocity(char *from, char *to, vector> rotations, vector times, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +// Rotation Function Functions +vector getRotation(char *from, char *to, vector coefficients, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} + +vector getAngularVelocity(char *from, char *to, vector coefficients, char *interp, double time) { + vector coordinate = {0.0, 0.0, 0.0}; + return coordinate; +} -- GitLab