Path: Math/Geometry
% Determine whether points p are in triangle v. Type PointInTriangle for a demo. If no outputs are specified it will draw the triangle and the points. Since version 11. -------------------------------------------------------------------------- Form: r = PointInPolygon( p, v ) -------------------------------------------------------------------------- ------ Inputs ------ v (2,3) Vertices of the triangle p (2,:) Points ------- Outputs ------- r (1,:) 1 = yes -------------------------------------------------------------------------- Reference: http://www.blackpawn.com/texts/pointinpoly/default.html --------------------------------------------------------------------------
Common: General/DeBlankLT Common: Graphics/NewFig Common: Graphics/PltStyle Common: Graphics/XLabelS Common: Graphics/YLabelS
Back to the Math Module page