OpenWalnut 1.3.1
Public Member Functions | Private Attributes
WUnitSphereCoordinates Class Reference

This class stores coordinates on the unit sphere. More...

#include <WUnitSphereCoordinates.h>

List of all members.

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

Detailed Description

This class stores coordinates on the unit sphere.

Definition at line 35 of file WUnitSphereCoordinates.h.


Constructor & Destructor Documentation

WUnitSphereCoordinates::WUnitSphereCoordinates ( )

Default constructor.

Definition at line 29 of file WUnitSphereCoordinates.cpp.

WUnitSphereCoordinates::WUnitSphereCoordinates ( double  theta,
double  phi 
)

Constructor for unit sphere angles.

Parameters:
thetacoordinate
phicoordinate

Definition at line 35 of file WUnitSphereCoordinates.cpp.

WUnitSphereCoordinates::WUnitSphereCoordinates ( WVector3d  vector) [explicit]

Constructor for Euclidean coordinates.

Parameters:
vectorEuclidean coordinates

Definition at line 41 of file WUnitSphereCoordinates.cpp.

References m_phi, and m_theta.

WUnitSphereCoordinates::~WUnitSphereCoordinates ( ) [virtual]

Destructor.

Definition at line 49 of file WUnitSphereCoordinates.cpp.


Member Function Documentation

WVector3d WUnitSphereCoordinates::getEuclidean ( ) const

Returns the stored sphere coordinates as Euclidean coordinates.

Returns:
sphere coordinates in euclidean space

Definition at line 73 of file WUnitSphereCoordinates.cpp.

References m_phi, and m_theta.

double WUnitSphereCoordinates::getPhi ( ) const

Return the phi angle.

Returns:
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.

Returns:
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.

Parameters:
phiValue for phi.

Definition at line 68 of file WUnitSphereCoordinates.cpp.

References m_phi.

void WUnitSphereCoordinates::setTheta ( double  theta)

Set theta angle.

Parameters:
thetaValue for theta.

Definition at line 63 of file WUnitSphereCoordinates.cpp.

References m_theta.


Member Data Documentation

coordinate

Definition at line 101 of file WUnitSphereCoordinates.h.

Referenced by getEuclidean(), getPhi(), setPhi(), and WUnitSphereCoordinates().

coordinate

Definition at line 99 of file WUnitSphereCoordinates.h.

Referenced by getEuclidean(), getTheta(), setTheta(), and WUnitSphereCoordinates().


The documentation for this class was generated from the following files: