1 #ifndef POINTS_FOR_GEOMETRY_H 2 #define POINTS_FOR_GEOMETRY_H 5 #include "shared_ptr.hpp" 6 #include "rect_fwd.hpp" 18 point():x(0.), y(0.), layer(0.){};
19 point(
double xx,
double yy,
int l = 0):x(xx), y(yy), layer(l){};
23 double top()
const {
return t;};
24 double bottom()
const {
return b;};
25 double left()
const {
return l;};
26 double right()
const {
return r;};
28 double width()
const {
return (t - b);};
29 double length()
const {
return (r - l);};
33 void include(
const point&);
35 static region determine_extension(
const Rectangle_const_ref&,
47 double rotation = 0.);
53 double x()
const {
return p_.x;};
54 double y()
const {
return p_.y;};
56 double degrees()
const {
return rotation_;};
57 double rad()
const {
return rotation_ * M_PI / 180.;};
65 void transform(
point&)
const;
67 point upper_point()
const;
68 point lower_point()
const;
73 std::unique_ptr<geometry_const_Iterator> gci;
83 void rotate(
double&
point);
92 typedef STD_TR1::shared_ptr<point_Positions> ref;
Definition: points.hpp:43
Definition: iterators.hpp:13
Definition: points.hpp:12
Definition: points.hpp:86
Definition: points.hpp:22