OpenWalnut
1.5.0dev
|
This class stores coordinates on the unit sphere. More...
#include <WUnitSphereCoordinates.h>
Public Member Functions | |
WUnitSphereCoordinates () | |
Default constructor. More... | |
WUnitSphereCoordinates (T theta, T phi) | |
Constructor for unit sphere angles. More... | |
WUnitSphereCoordinates (const WMatrixFixed< T, 3, 1 > &vector) | |
Constructor for Euclidean coordinates. More... | |
virtual | ~WUnitSphereCoordinates () |
Destructor. More... | |
T | getTheta () const |
Return the theta angle. More... | |
T | getPhi () const |
Return the phi angle. More... | |
void | setTheta (T theta) |
Set theta angle. More... | |
void | setPhi (T phi) |
Set phi angle. More... | |
WMatrixFixed< T, 3, 1 > | getEuclidean () const |
Returns the stored sphere coordinates as Euclidean coordinates. More... | |
void | setEuclidean (WMatrixFixed< T, 3, 1 > vector) |
Returns the stored sphere coordinates as Euclidean coordinates. More... | |
Private Attributes | |
T | m_theta |
coordinate More... | |
T | m_phi |
coordinate More... | |
This class stores coordinates on the unit sphere.
Definition at line 37 of file WUnitSphereCoordinates.h.
WUnitSphereCoordinates< T >::WUnitSphereCoordinates |
Default constructor.
Definition at line 114 of file WUnitSphereCoordinates.h.
WUnitSphereCoordinates< T >::WUnitSphereCoordinates | ( | T | theta, |
T | phi | ||
) |
Constructor for unit sphere angles.
theta | coordinate |
phi | coordinate |
Definition at line 121 of file WUnitSphereCoordinates.h.
|
explicit |
Constructor for Euclidean coordinates.
vector | Euclidean coordinates |
Definition at line 128 of file WUnitSphereCoordinates.h.
|
virtual |
Destructor.
Definition at line 134 of file WUnitSphereCoordinates.h.
WMatrixFixed< T, 3, 1 > WUnitSphereCoordinates< T >::getEuclidean |
Returns the stored sphere coordinates as Euclidean coordinates.
Definition at line 163 of file WUnitSphereCoordinates.h.
Referenced by WUnitSphereCoordinatesTest::testSphereToEuclideanConversion().
T WUnitSphereCoordinates< T >::getPhi |
Return the phi angle.
Definition at line 145 of file WUnitSphereCoordinates.h.
Referenced by WSymmetricSphericalHarmonic< T >::getValue().
T WUnitSphereCoordinates< T >::getTheta |
Return the theta angle.
Definition at line 139 of file WUnitSphereCoordinates.h.
Referenced by WSymmetricSphericalHarmonic< T >::getValue().
void WUnitSphereCoordinates< T >::setEuclidean | ( | WMatrixFixed< T, 3, 1 > | vector | ) |
Returns the stored sphere coordinates as Euclidean coordinates.
vector | coordinates in euclidean space |
Definition at line 169 of file WUnitSphereCoordinates.h.
Referenced by WUnitSphereCoordinatesTest::testSphereToEuclideanConversion().
void WUnitSphereCoordinates< T >::setPhi | ( | T | phi | ) |
Set phi angle.
phi | Value for phi. |
Definition at line 157 of file WUnitSphereCoordinates.h.
void WUnitSphereCoordinates< T >::setTheta | ( | T | theta | ) |
Set theta angle.
theta | Value for theta. |
Definition at line 151 of file WUnitSphereCoordinates.h.
|
private |
coordinate
Definition at line 110 of file WUnitSphereCoordinates.h.
|
private |
coordinate
Definition at line 108 of file WUnitSphereCoordinates.h.