Finding a coordinate in a circle

后端 未结 7 1172
梦谈多话
梦谈多话 2021-01-06 20:51

I am doing a mashup using Google Maps under Grails where users can create geofences by selecting a point on the map and a radius. This get stored on my database and the appl

7条回答
  •  再見小時候
    2021-01-06 21:09

    if distance from point to center of circle is <= radius of circle then it is inside the circle.
    if the area is made of more than one circle than compare to all the circles... it won't take that long.

    java.awt.geom.Point2D.Double is perfect for this.

提交回复
热议问题