Check Whether a Point Lies Inside,Outside or On a Circle
Version 1.2.0.0 (1.37 KB) by
Divakar Roy
Checks whether a point lies inside,outside or on a circle defined by 3 other points.
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.
Cite As
Divakar Roy (2026). Check Whether a Point Lies Inside,Outside or On a Circle (https://in.mathworks.com/matlabcentral/fileexchange/8284-check-whether-a-point-lies-inside-outside-or-on-a-circle), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
Find more on Interpolation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
