Consider a triangle with vertices at (0,0), (1,0), and (0,1). Write a program with an input (x,y) and the output S where S is the string 'outside' if the point (x,y) is outside of the triangle, 'border' if the point is exactly on the border of the triangle, and 'inside' if the point is on the inside of the triangle.
MATLAB: How can i solve this problem
triangle
Related Question
- How to check if a point (x,y) is either inside or outside a shape in a graph created be a set of experimental points
- I want to define a area that is polygonal. how can i determine a nu piont is in the polygonal or not?
- How to detect if a point lies between two parallel lines
- How to combine sets defined by vertices
- How can i fill in the vectors gotten from boundary function
Best Answer