#include <point.H>
Inherits Geom_Object.
Public Types | |
| enum | Quadrant { First, Second, Third, Fourth } |
| Cuadrantes. | |
Public Member Functions | |
| const Geom_Number & | get_r () const |
| Returns the magnitude. | |
| const Geom_Number & | get_theta () const |
| Returns the angle. | |
| Polar_Point (const Geom_Number &__r, const Geom_Number &__theta) | |
| Polar_Point (const Point &p) | |
| Constructor a partir de un punto cartesiano. El origen es (0,0) | |
| Quadrant | get_quadrant () const |
| Retorna el cuadrante donde se encuentra el punto. | |
| std::string | to_string () const |
| Convierte a string. | |
Friends | |
| class | Point |
Convert to polar coordinates a point in the cartesian plane.
This class is very useful for problems where you need to use angles (rotations by example).