Check Whether a Point Lies Inside,Outside or On a Circle

版本 1.2.0.0 (1.4 KB) 作者: Divakar Roy
Checks whether a point lies inside,outside or on a circle defined by 3 other points.
4.3K 次下载
更新时间 2011/6/24

查看许可证

This program checks whether a point (x,y) lies inside,outside or on a circle defined by 3 other points.

Syntax: iscircle(X,Y,x,y), where X=[x1 x2 x3] and Y=[y1 y2 y3]. Thus, a circle can be made out of these 3 points-->(x1,y1), x2,y2)&(x3,y3).
Program checks whether point (x,y) lies inside,outside or on the circle.
ans=0 ==> lie on the circle.
ans=1 ==> lie outside the circle.
ans=-1 ==> lie inside the circle.

引用格式

Divakar Roy (2024). Check Whether a Point Lies Inside,Outside or On a Circle (https://www.mathworks.com/matlabcentral/fileexchange/8284-check-whether-a-point-lies-inside-outside-or-on-a-circle), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Added screenshot.

1.0.0.0

As suggested by Jerome, i have made the modifications.
So now it works very fast.Thank you Jerome.