Coordinates are expressed as radius, azimuth angle, and height. More...
#include <grasp_coordinates.h>
Public Member Functions | |
cylindrical_coordinates () | |
cylindrical_coordinates (vec3 v) | |
cylindrical_coordinates (const cylindrical_coordinates &cc) | |
cylindrical_coordinates (cylindrical_coordinates *cc) | |
cylindrical_coordinates (double R, double phi, double z) | |
double | distanceTo (cylindrical_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 (cylindrical_coordinates from) const |
cylindrical_coordinates | get_vec_cylindrical (cylindrical_coordinates from) const |
spherical_coordinates | get_vec_spherical (cylindrical_coordinates from) const |
Coordinates are expressed as radius, azimuth angle, and height.
This class allows conversion to other coordinate systems
Definition at line 125 of file grasp_coordinates.h.
cylindrical_coordinates::cylindrical_coordinates | ( | double | R, | |
double | phi, | |||
double | z | |||
) |
Initializes the coordinates with the values R , phi , z .
Definition at line 336 of file grasp_coordinates.cpp.
cylindrical_coordinates::cylindrical_coordinates | ( | cylindrical_coordinates * | cc | ) |
Copies the values in cc .
Definition at line 344 of file grasp_coordinates.cpp.
cylindrical_coordinates::cylindrical_coordinates | ( | const cylindrical_coordinates & | cc | ) |
Copies the values in cc
Definition at line 352 of file grasp_coordinates.cpp.
cylindrical_coordinates::cylindrical_coordinates | ( | vec3 | v | ) |
Initializes the coordinates with the values from v .
Definition at line 360 of file grasp_coordinates.cpp.
cylindrical_coordinates::cylindrical_coordinates | ( | ) |
Initializes the coordinates to 0,0,0.
Definition at line 368 of file grasp_coordinates.cpp.
double cylindrical_coordinates::distanceTo | ( | cylindrical_coordinates | to | ) | const |
Converts both this and to to cartesian coordinates to compute distance measure.
Definition at line 468 of file grasp_coordinates.cpp.
cartesian_coordinates cylindrical_coordinates::get_pos_cartesian | ( | ) | const [virtual] |
Converts this to cartesian coordinates by computing x and y from radius and azimuth.
Reimplemented from coordinates.
Definition at line 378 of file grasp_coordinates.cpp.
cylindrical_coordinates cylindrical_coordinates::get_pos_cylindrical | ( | ) | const [virtual] |
Returns a copy of this.
Reimplemented from coordinates.
Definition at line 392 of file grasp_coordinates.cpp.
spherical_coordinates cylindrical_coordinates::get_pos_spherical | ( | ) | const [virtual] |
Converts this to spherical coordinates by computing a new radius and elevation.
Reimplemented from coordinates.
Definition at line 402 of file grasp_coordinates.cpp.
cartesian_coordinates cylindrical_coordinates::get_vec_cartesian | ( | cylindrical_coordinates | from | ) | const |
Definition at line 414 of file grasp_coordinates.cpp.
cylindrical_coordinates cylindrical_coordinates::get_vec_cylindrical | ( | cylindrical_coordinates | from | ) | const |
Definition at line 428 of file grasp_coordinates.cpp.
spherical_coordinates cylindrical_coordinates::get_vec_spherical | ( | cylindrical_coordinates | from | ) | const |
Definition at line 438 of file grasp_coordinates.cpp.