Public Member Functions | |
Point3D (double x=0.0, double y=0.0, double z=0.0) | |
constructor | |
Point3D (const Carthesian::Point3D &p) | |
copy constructor | |
Point3D & | operator= (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 |
3D carthesian point
Carthesian::Point3D::Point3D | ( | double | x = 0.0 , |
|
double | y = 0.0 , |
|||
double | z = 0.0 | |||
) |
Carthesian::Point3D::Point3D | ( | const Carthesian::Point3D & | p | ) |
copy constructor
p | point to copy |
const Carthesian::Point3D Carthesian::Point3D::operator+ | ( | const Carthesian::Vector3D & | v | ) | const |
translation operator
v | translation vector |
References translate().
Carthesian::Point3D & Carthesian::Point3D::operator= | ( | const Carthesian::Point3D & | p | ) |
affectation constructor
p | point to copy |
void Carthesian::Point3D::set | ( | double | x = 0.0 , |
|
double | y = 0.0 , |
|||
double | z = 0.0 | |||
) |
general setter
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
References Spherical::Point3D::to_geocentric(), and to_spherical().
Geodetic::Point3D Carthesian::Point3D::to_geodetic | ( | void | ) | const |
convert to geodetic coordinates (earth as an ellipsoid)
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
References Point3D().
Referenced by to_geocentric().
void Carthesian::Point3D::translate | ( | const Carthesian::Vector3D & | v | ) |
translate the point by the given vector
v | translation vector |
Referenced by Viewing::earth_to_sat_from_range(), and operator+().
std::ostream& operator<< | ( | std::ostream & | os, | |
const Point3D & | p | |||
) | [friend] |
content printer
os | output flux | |
pixel | current oject alias |