]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - incl/bcar.hh
Merge branch 'free-leave-entries'
[hubacji1/bcar.git] / incl / bcar.hh
index 95d67dfa6e1df4f1d7e4a5dea2619ca1ee52d32c..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