Cody

# Problem 45196. Determine whether a given point is inside or outside a polygon

Solution 2062975

Submitted on 19 Dec 2019 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
r = [44.28, 60.99]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

ans = logical 0

2   Pass
r = [38.33, 57.67]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1

3   Pass
r = [0.98, 23.99]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1

4   Pass
r = [27.07, 95.94]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

ans = logical 0

5   Pass
r = [ -7.45, 7.14]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

ans = logical 0

6   Pass
r = [43.19, 2.87]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1

7   Pass
r = [19.39, 16.79]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1

8   Pass
r = [48.72, 71.27]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1

9   Pass
r = [-6.42, 68.20]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

ans = logical 0

10   Pass
r = [20.03, 47.11]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

ans = logical 1