2#include "warpxm/warpxm_config.h"
This class should be used to convert face normal to a direction in the upper half of a hemisphere wit...
Definition: wxmspherical.h:28
SphericalHemisphereConverter()
SphericalPositionVector convert(const SphericalPositionVector &vecObj) const
This class computes Cartesian and Spherical components of a poition vector in space emanating from or...
Definition: wxmspherical.h:44
real _r
Definition: wxmspherical.h:206
real calculate_y()
calculate y component is r*sin(theta)*sin(phi)
real get_x() const
getter of x
Definition: wxmspherical.h:95
std::vector< real > _vec
Definition: wxmspherical.h:205
real calculate_x()
calculate x component is r*sin(theta)*cos(phi)
real get_z() const
getter of z
Definition: wxmspherical.h:111
void set_phi(real phi)
setter of phi
Definition: wxmspherical.h:161
real calculate_theta()
theta is the angle off the z axis (gives lattitude) is arccos(z/r) or equivalently arctan2(sqrt(x^2+y...
real get_theta() const
getter of theta
Definition: wxmspherical.h:79
void set_theta(real theta)
setter of theta
Definition: wxmspherical.h:153
real calculate_r()
r is the length of the vector (assumed to emanate from origin) should be sqrt (x**2 + y**2 + z**2)
real get_y() const
getter of y
Definition: wxmspherical.h:103
std::vector< real > calculate_vec()
void print(std::stringstream &ss)
Print attributes.
real _phi
Definition: wxmspherical.h:208
void set_r(real r)
Setters: Shouldn't do these without recalculating all attributes.
Definition: wxmspherical.h:145
SphericalPositionVector(const std::vector< real > n)
Initialize the position vector with Cartesian components (typically a normal)
real get_phi() const
getter of phi
Definition: wxmspherical.h:87
real calculate_phi()
phi is the longitude angle along x-y plane is arctan2(y/x)
real calculate_z()
calculate z component is r*cos(theta)
real get_r() const
getter of r
Definition: wxmspherical.h:71
void CalculateFromRTHETAPHI(real r, real theta, real phi)
SphericalPositionVector(const real r, const real theta, const real phi)
Initialize the position vector with Sphherical components.
real _theta
Definition: wxmspherical.h:207
#define real
Definition: wmoclunstructuredreconstruction.h:11