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.

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.

- r8mat_print.py, prints an R8MAT.
- r8mat_print_some.py, prints some of an R8MAT.
- r8mat_transpose_write.py writes the transpose of an R8MAT to a file.
- r8vec_print.py, prints an R8VEC.
- r8vec_uniform_01.py returns a unit pseudorandom R8VEC.
- timestamp.py, prints the current YMDHMS date as a timestamp.
- uniform_in_triangle_map1.py maps uniform points into a triangle.
- uniform_in_triangle_map1.txt

- triangle_interpolate_test.py, calls all the tests.
- triangle_interpolate_test.sh, runs all the tests.
- triangle_interpolate_test_output.txt, output from the sample calling program.

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