function testCirclePoint(circle, point) {
  if (circleHasNoSize(circle)) {
    return false;
  }

  const center = { x: circle.cx, y: circle.cy };
  const sqrDist = sqrDistance(center, point);

  if (sqrDist <= Math.pow(circle.r, 2)) {
    return true;
  }
  return false;
}
/**
 * Test if a Circle contains a point. If so, returns true and false otherwise.
 * Circle muse have a radius greater then 0.
 * @private
 * @param {object} circle
 * @param {number} circle.cx - center x-coordinate
 * @param {number} circle.cy - center y-coordinate
 * @param {number} circle.r - circle radius
 * @param {object} point
 * @param {number} point.x - x-coordinate
 * @param {number} point.y - y-coordinate
 * @return {boolean} true if circle contains point
 */
Test if a Circle contains a point. If so, returns true and false otherwise.
Circle muse have a radius greater then 0.
Test if a Circle contains a point . If so returns true and false otherwise . Circle muse have a radius greater then 0 .
function testCirclePoint(circle, point) {
  if (circleHasNoSize(circle)) {
    return false;
  }
  const center = { x: circle.cx, y: circle.cy };
  const sqrDist = sqrDistance(center, point);
  if (sqrDist <= Math.pow(circle.r, 2)) {
    return true;
  }
  return false;
}
function testCirclePoint ( circle , point ) { if ( circleHasNoSize ( circle ) ) { return false ; } const center = { x : circle . cx , y : circle . cy } ; const sqrDist = sqrDistance ( center , point ) ; if ( sqrDist <= Math . pow ( circle . r , 2 ) ) { return true ; } return false ; }
Test if a Circle contains a point.
Test if a Circle contains a point .