This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The Euler - Quaternion converter with tiny driver function | |
#ifndef __MATHTYPES___H_ | |
#define __MATHTYPES___H_ | |
#include <cstring> | |
#include <string> | |
#include <cmath> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Phaw! This certainly needs cleaning up, but it does work. | |
#include <complex> | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
typedef long double R; | |
typedef complex<double> cplex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ inline void GetTotalInteractionAsMatrixOpt(Interaction::SubType st, | |
+ Matrix3** mat, | |
+ energy* xx,energy* yy, energy* zz) const { | |
+ *mat=mOptList[st].matrix; | |
+ *xx=mOptList[st].xx; | |
+ *yy=mOptList[st].yy; | |
+ *zz=mOptList[st].zz; | |
+ } | |
+ inline void GetTotalInteractionAsTraceOpt(Interaction::SubType st, energy* trace) const { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing the gist feature.... |