title: Algorithm to verify if a shape is inside another - javafx
body: <p>I have a rectangular and circle. I need to verify whether a rectangle is inside that circle.</p>
  
  <p>I tried to Shape.intersects but intersects is checked the number 1.</p>
  
  <p>Does anyone know this kind of algorithm in javafx?</p>
  
  <p>Just to exemplifly, in the figure only rectangles 1, 2, 3, and 4 are inside the circle.</p>
  
  <p>thanks for your help.</p>
  
  <p><a href="https://i.stack.imgur.com/TyOzb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TyOzb.jpg" alt="enter image description here"></a></p>