triangle_analyze, a C code which reads a triangle defined in a file, and uses the TRIANGLE_PROPERTIES library to compute angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality.


triangle_analyze filename
where filename contains the vertex coordinates.


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


triangle_analyze is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

GEOMETRY, a C code which performs geometric calculations in 2, 3 and N dimensional space.


TRIANGLE_INTERPOLATE, a C code which shows how vertex data can be interpolated at any point in the interior of a triangle.

TRIANGLE_PROPERTIES, a C code which computes properties of triangles.

TRIANGLES, a dataset directory which contains examples of triangles;

Source Code:

Last revised on 21 August 2019.