IsPointInsidePara
not ratedDetermines if the given co-ordinates are inside a parallelogram/diamond, whose corners are defined as being the middle of each side of the rect ie:
_ _
| /\ |
/ \
\ /
|_\/_|
This is designed for diamond shape patches of terrain which cannot be defined easily be regions, village fields are a perfect example. Usually the enclosing rect will be a perfect square, but this is not a requirement for the function.
I'm not entirely happy with the function name or description, suggestions are welcome.
_ _
| /\ |
/ \
\ /
|_\/_|
This is designed for diamond shape patches of terrain which cannot be defined easily be regions, village fields are a perfect example. Usually the enclosing rect will be a perfect square, but this is not a requirement for the function.
I'm not entirely happy with the function name or description, suggestions are welcome.