Interpolation on a Triangle

TRIANGLE_INTERPOLATE is a FORTRAN90 library which demonstrates some simple techniques for interpolating data on a triangle.

In the most common case, the value of a quantity is known at the vertices of a triangle, and a reasonable interpolated value is desired at some point p in the interior of that triangle. This can be done by linear interpolation.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


TRIANGLE_INTERPOLATE is available in a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

TRIANGLE_PROPERTIES, a Python library which can compute properties, including angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality, of a triangle in 2D.

Source Code:

Examples and Tests:

You can go up one level to the Python source codes.

Last revised on 19 January 2016.