#include <math.h>
Go to the source code of this file.
Functions | |
double | rad2deg (const float &rad) |
Converter radians to degrees. | |
double | deg2rad (const float °) |
Converter degrees to radians. | |
void | flip (double &dec, double &dip) |
put a vector in the lower hemisphere | |
void | flip (float &dec, float &dip) |
put a vector in the lower hemisphere | |
float | normRadAngle (float angleRad) |
renormalize an angle to be in [0..2*M_PI] | |
void | rotateXY (const float x1, const float y1, const float angleRad, float &x2, float &y2) |
rotate an XY vector about the origin | |
void | xyz2tpr (const double x, const double y, const double z, double &theta, double &phi, double &radius) |
convert xyz to theta (t) and phi(p) in radians. Go polar. | |
void | ldi2xyz (const float len, const float dec, const float inc, std::vector< float > &xyz) |
Takes a triple that comes from the output of s_eigs and gives the cartesian coordinates. | |
bool | isEqual (const float a, const float b, const float del) |
Compare two floats to see if they are close to each other. |
|
Converter degrees to radians.
|
|
put a vector in the lower hemisphere
|
|
put a vector in the lower hemisphere
|
|
Compare two floats to see if they are close to each other.
|
|
Takes a triple that comes from the output of s_eigs and gives the cartesian coordinates.
|
|
renormalize an angle to be in [0..2*M_PI]
|
|
Converter radians to degrees.
|
|
rotate an XY vector about the origin
|
|
convert xyz to theta (t) and phi(p) in radians. Go polar.
|