Find if a given point lies inside a given shapeProblem: Given a shape on a plane specified by points (P1, P2, P3 ... Pn). Find out if a given point Pk lies inside or outside that shape. Each point contains the coordinates (x,y) Note: The given array of points are in order. So there is no need to find the order of points required to form a closed shape. Solution:
![]() Also see: Linear programming and Intersection of two lines |
Got a thought to share or found a
bug in the code?
We'd love to hear from you:
Name: | |
Email: | (Your email is not shared with anybody) |
Comment: |
Facebook comments: