Coordinates are expressed as radius, azimuth angle, and elevation angle. More...
#include <grasp_coordinates.h>
Public Member Functions | |
double | distanceTo (spherical_coordinates) const |
cartesian_coordinates | get_pos_cartesian () const |
cylindrical_coordinates | get_pos_cylindrical () const |
spherical_coordinates | get_pos_spherical () const |
cartesian_coordinates | get_vec_cartesian (spherical_coordinates from) const |
cylindrical_coordinates | get_vec_cylindrical (spherical_coordinates from) const |
spherical_coordinates | get_vec_spherical (spherical_coordinates from) const |
spherical_coordinates () | |
spherical_coordinates (vec3 v) | |
spherical_coordinates (const spherical_coordinates &cc) | |
spherical_coordinates (spherical_coordinates *cc) | |
spherical_coordinates (double r, double teta, double phi) |
Coordinates are expressed as radius, azimuth angle, and elevation angle.
This class allows conversion to other coordinate systems.
Definition at line 160 of file grasp_coordinates.h.
spherical_coordinates::spherical_coordinates | ( | double | r, | |
double | teta, | |||
double | phi | |||
) |
Initializes the coordinates with the values R , teta , phi .
Definition at line 484 of file grasp_coordinates.cpp.
spherical_coordinates::spherical_coordinates | ( | spherical_coordinates * | cc | ) |
Copies the values from cc.
Definition at line 492 of file grasp_coordinates.cpp.
spherical_coordinates::spherical_coordinates | ( | const spherical_coordinates & | cc | ) |
Copies the values from cc.
Definition at line 500 of file grasp_coordinates.cpp.
spherical_coordinates::spherical_coordinates | ( | vec3 | v | ) |
Initializes the coordinates with the values R , phi , z .
Definition at line 508 of file grasp_coordinates.cpp.
spherical_coordinates::spherical_coordinates | ( | ) |
Initializes the coordinates with the values R , phi , z .
Definition at line 516 of file grasp_coordinates.cpp.
double spherical_coordinates::distanceTo | ( | spherical_coordinates | to | ) | const |
Definition at line 616 of file grasp_coordinates.cpp.
cartesian_coordinates spherical_coordinates::get_pos_cartesian | ( | ) | const [virtual] |
Converts this to cartesian coordinates.
Reimplemented from coordinates.
Definition at line 525 of file grasp_coordinates.cpp.
cylindrical_coordinates spherical_coordinates::get_pos_cylindrical | ( | ) | const [virtual] |
Converts this to cylindrical coordinates.
Reimplemented from coordinates.
Definition at line 538 of file grasp_coordinates.cpp.
spherical_coordinates spherical_coordinates::get_pos_spherical | ( | ) | const [virtual] |
Returns a copy of this.
Reimplemented from coordinates.
Definition at line 551 of file grasp_coordinates.cpp.
cartesian_coordinates spherical_coordinates::get_vec_cartesian | ( | spherical_coordinates | from | ) | const |
Definition at line 560 of file grasp_coordinates.cpp.
cylindrical_coordinates spherical_coordinates::get_vec_cylindrical | ( | spherical_coordinates | from | ) | const |
Definition at line 580 of file grasp_coordinates.cpp.
spherical_coordinates spherical_coordinates::get_vec_spherical | ( | spherical_coordinates | from | ) | const |
Returns a copy of this.
Definition at line 596 of file grasp_coordinates.cpp.