FORCES
FORtran lib for Comp. Env. Sys.
|
Determination point of polygon. More...
Public Member Functions | |
subroutine | inpoly_sp (p, coord, erg) |
Determination point of polygon. | |
subroutine | inpoly_dp (p, coord, erg) |
Determination point of polygon. | |
Determination point of polygon.
Determines whether a 2D point is inside, outside or on vertex of a polygon (2D, convex or not).
The original version of the source code (pnpoly) was implemented by W. Randolph Franklin. It was insufficiently assigning vertex/edge points.
Example
See also example in test directory
Literature
[in] | p | point in question |
[in] | coord | coordinates of the polygon |
[out] | erg | result: inside: erg = 1 outside: erg = -1 on vertex/edge: erg = 0 |
Definition at line 47 of file mo_poly.f90.
subroutine mo_poly::inpoly::inpoly_dp | ( | real(dp), dimension(2), intent(in) | p, |
real(dp), dimension(:, :), intent(in) | coord, | ||
integer(i4), intent(out) | erg | ||
) |
Determination point of polygon.
Determines whether a 2D point is inside, outside or on vertex of a polygon (2D, convex or not).
The original version of the source code (pnpoly) was implemented by W. Randolph Franklin. It was insufficiently assigning vertex/edge points.
Example
See also example in test directory
Literature
[in] | p | point in question |
[in] | coord | coordinates of the polygon |
[out] | erg | result: inside: erg = 1 outside: erg = -1 on vertex/edge: erg = 0 |
Definition at line 607 of file mo_poly.f90.
subroutine mo_poly::inpoly::inpoly_sp | ( | real(sp), dimension(2), intent(in) | p, |
real(sp), dimension(:, :), intent(in) | coord, | ||
integer(i4), intent(out) | erg | ||
) |
Determination point of polygon.
Determines whether a 2D point is inside, outside or on vertex of a polygon (2D, convex or not).
The original version of the source code (pnpoly) was implemented by W. Randolph Franklin. It was insufficiently assigning vertex/edge points.
Example
See also example in test directory
Literature
[in] | p | point in question |
[in] | coord | coordinates of the polygon |
[out] | erg | result: inside: erg = 1 outside: erg = -1 on vertex/edge: erg = 0 |
Definition at line 232 of file mo_poly.f90.