MATLAB: Point or multiple points is/are in a triangle?

triangle

Check whether a point or multiple points is/are in a triangle with three corners
Points = [x, y];
Triangle = [x1, y1; x2, y2; x3, y3]
Return true or false for each point tested.

Best Answer

tf = inpolygon(Points(:,1),Points(:,2),Triangle(:,1),Triangle(:,2))
Related Question