OpenWalnut 1.2.5
|
This class stores coordinates on the unit sphere. More...
#include <WUnitSphereCoordinates.h>
Public Member Functions | |
WUnitSphereCoordinates () | |
Default constructor. | |
WUnitSphereCoordinates (double theta, double phi) | |
Constructor for unit sphere angles. | |
WUnitSphereCoordinates (WVector3d vector) | |
Constructor for Euclidean coordinates. | |
virtual | ~WUnitSphereCoordinates () |
Destructor. | |
double | getTheta () const |
Return the theta angle. | |
double | getPhi () const |
Return the phi angle. | |
void | setTheta (double theta) |
Set theta angle. | |
void | setPhi (double phi) |
Set phi angle. | |
WVector3d | getEuclidean () const |
Returns the stored sphere coordinates as Euclidean coordinates. | |
Private Attributes | |
double | m_theta |
coordinate | |
double | m_phi |
coordinate |
This class stores coordinates on the unit sphere.
Definition at line 37 of file WUnitSphereCoordinates.h.
WUnitSphereCoordinates::WUnitSphereCoordinates | ( | ) |
Default constructor.
Definition at line 29 of file WUnitSphereCoordinates.cpp.
WUnitSphereCoordinates::WUnitSphereCoordinates | ( | double | theta, |
double | phi | ||
) |
Constructor for unit sphere angles.
theta | coordinate |
phi | coordinate |
Definition at line 35 of file WUnitSphereCoordinates.cpp.
WUnitSphereCoordinates::WUnitSphereCoordinates | ( | WVector3d | vector | ) | [explicit] |
Constructor for Euclidean coordinates.
vector | Euclidean coordinates |
Definition at line 41 of file WUnitSphereCoordinates.cpp.
WUnitSphereCoordinates::~WUnitSphereCoordinates | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file WUnitSphereCoordinates.cpp.
WVector3d WUnitSphereCoordinates::getEuclidean | ( | ) | const |
Returns the stored sphere coordinates as Euclidean coordinates.
Definition at line 73 of file WUnitSphereCoordinates.cpp.
double WUnitSphereCoordinates::getPhi | ( | ) | const |
Return the phi angle.
Definition at line 58 of file WUnitSphereCoordinates.cpp.
References m_phi.
Referenced by WSymmetricSphericalHarmonic::getValue().
double WUnitSphereCoordinates::getTheta | ( | ) | const |
Return the theta angle.
Definition at line 53 of file WUnitSphereCoordinates.cpp.
References m_theta.
Referenced by WSymmetricSphericalHarmonic::getValue().
void WUnitSphereCoordinates::setPhi | ( | double | phi | ) |
Set phi angle.
phi | Value for phi. |
Definition at line 68 of file WUnitSphereCoordinates.cpp.
References m_phi.
void WUnitSphereCoordinates::setTheta | ( | double | theta | ) |
Set theta angle.
theta | Value for theta. |
Definition at line 63 of file WUnitSphereCoordinates.cpp.
References m_theta.
double WUnitSphereCoordinates::m_phi [private] |
coordinate
Definition at line 104 of file WUnitSphereCoordinates.h.
Referenced by getEuclidean(), getPhi(), setPhi(), and WUnitSphereCoordinates().
double WUnitSphereCoordinates::m_theta [private] |
coordinate
Definition at line 102 of file WUnitSphereCoordinates.h.
Referenced by getEuclidean(), getTheta(), setTheta(), and WUnitSphereCoordinates().