16 stored_x = stored_y = stored_angle = stored_distance = 0;
21 stored_x = x; stored_y = y; stored_distance = sqrt(x*x + y*y); stored_angle = atan2(y, x);
26 stored_angle = theta; stored_distance = rho; stored_y = rho*sin(theta); stored_x = rho*cos(theta);
31 x = stored_x; y = stored_y;
36 rho = stored_distance; theta = stored_angle;
void set_cartesian(const double x, const double y)
void get_cartesian(double &x, double &y)
void get_polar(double &rho, double &theta)
void set_polar(const double rho, const double theta)
An interface for the device drivers.