PointInGridInTriangle:

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:
   t = PointInGridInTriangle( v, n, m )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   v             (2,3) Vertices of the triangle
   n             (1,1) Rows
   m             (1,1) Columns

   -------
   Outputs
   -------
   t             (1,:) Coordinates

--------------------------------------------------------------------------
   Reference: http://www.blackpawn.com/texts/pointinpoly/default.html
--------------------------------------------------------------------------

Children:

Common: General/DeBlankLT
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS

Back to the Math Module page