This module contains the definition of a polygon and some related subroutines
More...
- Attention
- Modify these functions at your own risk. Many algorithms depend on the specific behaviour of these functions. They are designed to not generate false negative results. Note that false positive results may occur due to the finite representation of real numbers. Take that into consideration when writing new algorithms.
◆ cg2_axisym_polygon_centroid()
pure subroutine mod_cg2_axisym_polygon::cg2_axisym_polygon_centroid |
( |
type(t_polygon), intent(in) | polygon, |
|
|
double precision, dimension(2), intent(out) | centroid, |
|
|
double precision, intent(out), optional | volume ) |
This routine computes the coordinates of the centroid and the volume of a polygon in axisymmetric configuration.
- Parameters
-
[in] | polygon | Any polygon |
[out] | centroid | Centroid of the polygon |
[out] | volume | Volume of the polygon |
◆ cg2_axisym_polygon_volume()
double precision pure function mod_cg2_axisym_polygon::cg2_axisym_polygon_volume |
( |
type(t_polygon), intent(in) | polygon | ) |
|