Public Member Functions | Public Attributes | Friends

Carthesian::Point3D Class Reference

List of all members.

Public Member Functions

 Point3D (double x=0.0, double y=0.0, double z=0.0)
 constructor
 Point3D (const Carthesian::Point3D &p)
 copy constructor
Point3Doperator= (const Carthesian::Point3D &p)
 affectation constructor
const Point3D operator+ (const Carthesian::Vector3D &v) const
 translation operator
void set (double x=0.0, double y=0.0, double z=0.0)
 general setter
Spherical::Point3D to_spherical (void) const
 convert to spherical coordinates
Geocentric::Point3D to_geocentric (void) const
 convert to Geocentric coordinates
Geodetic::Point3D to_geodetic (void) const
 convert to geodetic coordinates (earth as an ellipsoid)
void translate (const Carthesian::Vector3D &v)
 translate the point by the given vector

Public Attributes

double x
double y
double z

Friends

std::ostream & operator<< (std::ostream &os, const Point3D &p)
 content printer

Detailed Description

3D carthesian point


Constructor & Destructor Documentation

Carthesian::Point3D::Point3D ( double  x = 0.0,
double  y = 0.0,
double  z = 0.0 
)

constructor

Parameters:
x x coordinate
y y coordinate
z z coordinate

Referenced by to_spherical().

Carthesian::Point3D::Point3D ( const Carthesian::Point3D p  ) 

copy constructor

Parameters:
p point to copy

Member Function Documentation

const Carthesian::Point3D Carthesian::Point3D::operator+ ( const Carthesian::Vector3D v  )  const

translation operator

Parameters:
v translation vector
Returns:
the point resulting of the translation of self by the vector v

References translate().

Carthesian::Point3D & Carthesian::Point3D::operator= ( const Carthesian::Point3D p  ) 

affectation constructor

Parameters:
p point to copy
void Carthesian::Point3D::set ( double  x = 0.0,
double  y = 0.0,
double  z = 0.0 
)

general setter

Parameters:
x x coordinate
y y coordinate
z z coordinate

Referenced by CALIOPFileData::get_viewing_directions().

Geocentric::Point3D Carthesian::Point3D::to_geocentric ( void   )  const

convert to Geocentric coordinates

Returns:
P in Geocentric coordinates

References Spherical::Point3D::to_geocentric(), and to_spherical().

Geodetic::Point3D Carthesian::Point3D::to_geodetic ( void   )  const

convert to geodetic coordinates (earth as an ellipsoid)

Returns:
P in geodetic coordinates

References Geodetic::Point3D::set().

Referenced by Viewing::alt_to_range(), and Viewing::earth_to_sat_from_range().

Spherical::Point3D Carthesian::Point3D::to_spherical ( void   )  const

convert to spherical coordinates

Returns:
P in spherical coordinates

References Point3D().

Referenced by to_geocentric().

void Carthesian::Point3D::translate ( const Carthesian::Vector3D v  ) 

translate the point by the given vector

Parameters:
v translation vector

Referenced by Viewing::earth_to_sat_from_range(), and operator+().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Point3D p 
) [friend]

content printer

Parameters:
os output flux
pixel current oject alias
Returns:
the content description added to the output flux

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