#include <point.H>
Inherits Geom_Object.
Inherited by Vertex.
Public Member Functions | |
| Point (const Geom_Number &__x, const Geom_Number &__y) | |
| Builds a new point in coordinates (__x, __y) | |
| Point (const Point &p) | |
| Builds a copy of p. | |
| Point (const Polar_Point &pp) | |
| Builds a new point from polar coordinates. | |
| bool | operator== (const Point &point) const |
| bool | operator!= (const Point &point) const |
| Point | operator+ (const Point &p) const |
| Point & | operator+= (const Point &p) |
| Point | operator- (const Point &p) const |
| Point & | operator-= (const Point &p) |
| const Geom_Number & | get_x () const |
| Returns x value. | |
| const Geom_Number & | get_y () const |
| Returns y value. | |
| bool | is_colinear_with (const Point &p1, const Point &p2) const |
| Returns true if this is colinear with p1 and p2. | |
| bool | is_colinear_with (const Segment &s) const |
| Returns true if this is colinear with segment s. | |
| bool | is_to_left_from (const Point &p1, const Point &p2) const |
| Return true if this is to left from points p1 and p2. | |
| bool | is_to_right_from (const Point &p1, const Point &p2) const |
| Return true if this is to right from points p1 and p2. | |
| bool | is_to_left_on_from (const Point &p1, const Point &p2) const |
| Return true if this is to left from (or on) points p1 and p2. | |
| bool | is_to_right_on_from (const Point &p1, const Point &p2) const |
| Return true if this is to right from (or on) points p1 and p2. | |
| bool | is_clockwise_with (const Point &p1, const Point &p2) const |
| Returns true if the sequence this-p1-p2 is clockwise. | |
| bool | is_to_left_from (const Segment &s) const |
| bool | is_to_right_from (const Segment &s) const |
| bool | is_clockwise_with (const Segment &s) const |
| bool | is_between (const Point &p1, const Point &p2) const |
| Returns true if this is between p1 and p2. | |
| const Point & | nearest_point (const Point &p1, const Point &p2) const |
| Return the nearest point (to this) between p1 and p2. | |
| bool | is_inside (const Segment &s) const |
| Returns true if this is inside of segment s. | |
| bool | is_inside (const Ellipse &e) const |
| Returns true if this is inside of the ellipse e. | |
| bool | intersects_with (const Ellipse &e) const |
| retorna true si this intercepta con la elipse e | |
| std::string | to_string () const |
| Return a string representation of this. | |
| operator std::string () const | |
| String cast operator. | |
| Geom_Number | distance_squared_to (const Point &that) const |
| Returns the square distance between this y that. | |
| Geom_Number | distance_with (const Point &p) const |
| Returns the euclidean distance between this and p. | |
| const Point & | highest_point () const |
| const Point & | lowest_point () const |
| const Point & | leftmost_point () const |
| const Point & | rightmost_point () const |
Friends | |
| class | Segment |
| class | Triangle |
| class | Polar_Point |
Rectangular point in the plane.
Fundamental class which defines a point in a cartesians coordinates plane.