5 #ifndef USML_TYPES_WVECTOR1_H
6 #define USML_TYPES_WVECTOR1_H
8 #include <usml/ublas/ublas.h>
9 #include <usml/types/wvector.h>
14 using namespace usml::ublas;
38 wvector1(
double r = 0.0,
double t = 0.0,
double p = 0.0);
60 inline double rho()
const
70 inline void rho(
double r)
152 double dot(
const wvector1& other)
const;
160 double dotnorm(
const wvector1& other)
const;
169 double distance(
const wvector1& origin)
const;
178 double distance2(
const wvector1& origin)
const;
191 void direction(
double* de,
double* az);
double _rho
Storage for the radial component of the coordinate system.
Definition: wvector1.h:51
double _theta
Storage for the colatitude component of the coordinate system.
Definition: wvector1.h:81
double _phi
Storage for the longitude component of the coordinate system.
Definition: wvector1.h:112
Individual world vector in spherical earth coordinates.
Definition: wvector1.h:27
double theta() const
Retrieves the colatitude component of the spherical earth coordinate system.
Definition: wvector1.h:91
double phi() const
Retrieves the longitude component of the spherical earth coordinate system.
Definition: wvector1.h:122
void rho(double r)
Defines the radial component of the spherical earth coordinate.
Definition: wvector1.h:70
void theta(double t)
Defines the colatitude component of the spherical earth coordinate.
Definition: wvector1.h:101
void phi(double p)
Defines the longitude component of the spherical earth coordinate.
Definition: wvector1.h:132
double rho() const
Retrieves the radial component of the spherical earth coordinate system.
Definition: wvector1.h:60
World vector in spherical earth coordinates.
Definition: wvector.h:42