Initialises a polygon object "polygon" with points {X_points, Y_points} If local_min and local_max are given, a limiting_polygon2d_t is created, which stores these limits for later recall N.b. X_points and Y_points should be given normalised
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | N_points | |||
| real(kind=FP), | intent(in), | dimension(N_points) | :: | X_points | ||
| real(kind=FP), | intent(in), | dimension(N_points) | :: | Y_points | ||
| class(polygon2d_t), | intent(out) | :: | polygon | |||
| real(kind=FP), | intent(in), | optional | :: | local_min | ||
| real(kind=FP), | intent(in), | optional | :: | local_max | ||
| logical, | intent(in), | optional | :: | use_local_min | ||
| logical, | intent(in), | optional | :: | use_local_max |