Description Usage Arguments Value Author(s) See Also Examples
View source: R/hexagonPT_verticles.R
Calculate coordinates of each pointy top (PT) hexagon verticle (A, B, C, D, E, F) in respect to center coordinates O(x,y).
1 | hexagonPT_verticles(x, y, r = NULL, l = NULL)
|
x |
hexagon center coordinates. |
y |
hexagon center coordinates. |
r |
radius of circle inscribed in hexagon. Default value is 0.5. |
l |
distance from the center to the upper/lower vertices of hexagon. |
Data frame with coordinates x and y (rows) of 6 verticles as variables: A (top) , B (left upper), C (left lower), D (bottom), E (right) lower and F (right upper).
Vilmantas Gegzna
Other SOM.and.hexagon.related.functions.in..pkg.spHelper.: hex_neighbour_dist
,
hex_neighbourhood_line_pos
1 2 3 4 5 | hexagonPT_verticles(1,1)
hexagonPT_verticles(1,1, r = 1)
hexagonPT_verticles(1,1, l = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.