View source: R/coo-ldk-utilities.R
def_ldk_angle | R Documentation |
A wrapper on coo_intersect_angle and coo_intersect_direction for Out and Opn objects.
def_ldk_angle(coo, angle)
def_ldk_direction(coo, direction = c("down", "left", "up", "right")[4])
## Default S3 method:
def_ldk_direction(coo, direction = c("down", "left", "up", "right")[4])
## S3 method for class 'Out'
def_ldk_direction(coo, direction = c("down", "left", "up", "right")[4])
## S3 method for class 'Opn'
def_ldk_direction(coo, direction = c("down", "left", "up", "right")[4])
coo |
a |
angle |
|
direction |
|
a Momocs object of same class
any existing ldk will be preserved.
Typically used before coo_slice and coo_slide. See def_ldk_tips as well.
# adds a new landmark towards south east
hearts %>%
slice(1:5) %>% # for speed purpose only
def_ldk_angle(-pi/6) %>%
stack()
# on Out and towards NW and NE here
olea %>%
slice(1:5) %>% #for speed purpose only
def_ldk_angle(3*pi/4) %>%
def_ldk_angle(pi/4) %>%
stack
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.