查找点是否在具有给定中心和半径的圆内 [英] Find if points are within a circle with given center and radius
本文介绍了查找点是否在具有给定中心和半径的圆内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有一个点(x,y)和一组其他点(xi,yi).如何确定(xi,yi)中的哪个(x,y)和半径 r (给定数) )?
We have a point (x,y) and a set of some other points (xi,yi). How can we determine which of (xi,yi) are within a circle with center (x,y) and radius r (a given number)?
推荐答案
(xi-x)**2 + (yi-y)**2 < r**2
这篇关于查找点是否在具有给定中心和半径的圆内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文