orog_mask_tools
1.9.0
|
Test whether a point is inside a spherical convex polygon. More...
Go to the source code of this file.
Functions/Subroutines | |
logical function | enclosure_cnvx (v, n, p, co_gc) |
Test whether a given point 'p' is inside a convex spherical polygon defined with a series of 'n' vertices. More... | |
Test whether a point is inside a spherical convex polygon.
Definition in file enclosure_cnvx.F90.
logical function enclosure_cnvx | ( | real*8, dimension(2,n), intent(in) | v, |
integer, intent(in) | n, | ||
real*8, dimension(2), intent(in) | p, | ||
integer, intent(out) | co_gc | ||
) |
Test whether a given point 'p' is inside a convex spherical polygon defined with a series of 'n' vertices.
Both the test point and the polygon are specified in latitude and longitude radians. It is assumed that a side of a spherical polygon is a great-circle arc that connects 2 adjacent vertices of the polygon.
[in] | v | set of vertices |
[in] | n | number of vertices in v |
[in] | p | point to test |
[out] | co_gc | 'i' if p is on or within epsilon to side 'i' of the given spherical polygon, or 0 if point is not on any side of the given polygon. |
Definition at line 50 of file enclosure_cnvx.F90.