point_in_circle.cpp 222 B

1234567891011
  1. #include "point_in_circle.h"
  2. IGL_INLINE bool igl::point_in_circle(
  3. const double qx,
  4. const double qy,
  5. const double cx,
  6. const double cy,
  7. const double r)
  8. {
  9. return (qx-cx)*(qx-cx) + (qy-cy)*(qy-cy) - r*r < 0;
  10. }