George Iskander - MATLAB Cody - MATLAB Central

George Iskander

739
Rank
16
Badges
2688
Score
51 – 100 of 264

George Iskander submitted a Comment to Solution 182016

Let the coordinates of three corners be (x1, y1), (x2, y2) and (x3, y3). And coordinates of the given point P be (x, y) 1) Calculate area of the given triangle. Area A = [ x1(y2 – y3) + x2(y3 – y1) + x3(y1-y2)]/2 2) Calculate area of the triangle PAB. We can use the same formula for this. Let this area be A1. 3) Calculate area of the triangle PBC. Let this area be A2. 4) Calculate area of the triangle PAC. Let this area be A3. 5) If P lies inside the triangle, then A1 + A2 + A3 must be equal to A.

on 8 Apr 2022

George Iskander received Community Group Solver badge for Basics - Triangles

on 8 Apr 2022

51 – 100 of 264
Go to top of page