]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - incl/bcar.hh
Merge branch 'free-leave-entries'
[hubacji1/bcar.git] / incl / bcar.hh
index 018415d96e78df321634ab544e7bb874fda17717..49122977b42e9d1e762a1e985f52a211253c4fbe 100644 (file)
@@ -55,6 +55,12 @@ public:
         */
        bool inside_of(std::vector<Point> const& poly) const;
 
+       /*! \brief Return `true` if `this` point is inside the circle `c`, `r`.
+        *
+        * \see * https://math.stackexchange.com/questions/198764/how-to-know-if-a-point-is-inside-a-circle#198769
+        */
+       bool inside_of(Point const& c, double const r) const;
+
        /*! \brief Return `true` if on the right side of the plane.
         *
         * The plane is given by the line `li`, where `li->b()` is the base
@@ -144,6 +150,9 @@ public:
 
        double h() const;
 
+       /*! Generate output for plotting with gnuplot. */
+       void gen_gnuplot_to(std::ostream& out);
+
        friend std::ostream& operator<<(std::ostream& out, Line const& li);
 };
 
@@ -486,6 +495,10 @@ public:
                bool RF_POINT = false;
                bool LFM_POINT = false;
                bool RFM_POINT = false;
+               bool CRA_POINT = false;
+               bool CAR_POINT = false;
+               bool LRA_POINT = false;
+               bool RRA_POINT = false;
 
                bool LEFT = false;
                bool RIGHT = false;