TRIANGLE_PROPERTIES
Compute Properties of a Triangle
TRIANGLE_PROPERTIES
is a MATLAB program which
computes properties of a triangle.
These properties include:
-
Angles;
-
Area;
-
Centroid;
-
Circumcircle (center and radius);
-
Edge lengths;
-
Incircle (center and radius);
-
Orientation;
-
Orthocenter;
-
Quality: ratio of incircle radius / circumcircle radius;
Usage:
triangle_properties ( 'filename' )
where
-
'filename' is a file which contains the vertex coordinates.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
TRIANGLE_PROPERTIES is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Data and Programs:
GEOMETRY,
a MATLAB library which
performs geometric calculations in 2, 3 and N dimensional space.
TETRAHEDRON_PROPERTIES,
a MATLAB program which
computes properties of a given tetrahedron.
TRIANGLES,
a dataset directory which
contains examples of triangles;
Source Code:
Examples and Tests:
-
tex1.txt, example 1.
-
tex1_properties.txt,
the output file.
-
tex2.txt, example 2.
-
tex2_properties.txt,
the output file.
-
tex3.txt, example 3.
-
tex3_properties.txt,
the output file.
-
tex4.txt, example 4.
-
tex4_properties.txt,
the output file.
-
tex5.txt, example 5.
-
tex5_properties.txt,
the output file.
-
tex6.txt, example 6.
-
tex6_properties.txt,
the output file.
-
tex7.txt, example 7.
-
tex7_properties.txt,
the output file.
-
tex8.txt, example 8.
-
tex8_properties.txt,
the output file.
-
triangle_cap.txt,
example of a "cap" triangle.
-
triangle_cap_properties.txt,
the output file.
-
triangle_equilateral.txt,
example of an equilateral triangle.
-
triangle_equilateral_properties.txt,
the output file.
-
triangle_needle.txt,
example of a "needle" triangle.
-
triangle_needle_properties.txt,
the output file.
-
triangle_ref.txt,
example of a reference triangle.
-
triangle_ref_properties.txt,
the output file.
-
triangle_right.txt,
example of a right triangle.
-
triangle_right_properties.txt,
the output file.
You can go up one level to
the MATLAB source codes.
Last revised on 18 July 2009.