sfc_previous_point,sfc_base-method | R Documentation |
The previous and the next point
## S4 method for signature 'sfc_base'
sfc_previous_point(p, x, rot, length = 1)
## S4 method for signature 'sfc_base'
sfc_next_point(p, x, rot, length = 1)
p |
An |
x |
The coordinate of the current point. |
rot |
Rotation of the current point. |
length |
Length of the segment between the previous/next point and the current point. |
A vector of length two.
sfc_previous_point(BASE_R, c(0, 0), 0)
sfc_previous_point(BASE_R, c(0, 0), 90)
sfc_previous_point(BASE_R, c(0, 0), 180)
sfc_previous_point(BASE_R, c(1, 0), 0)
sfc_previous_point(BASE_R, c(1, 0), 90)
sfc_previous_point(BASE_R, c(1, 0), 180)
sfc_next_point(BASE_R, c(0, 0), 0)
sfc_next_point(BASE_R, c(0, 0), 90)
sfc_next_point(BASE_R, c(0, 0), 180)
sfc_next_point(BASE_R, c(1, 0), 0)
sfc_next_point(BASE_R, c(1, 0), 90)
sfc_next_point(BASE_R, c(1, 0), 180)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.