height_slash_left(), height_slash_right(),
width_slash_left(), and width_slash_right()
return the height or width of the left or right end of the equivalent
d_fslash() or d_bslash() shapes.
Usage
height_slash_left(
dx,
dy,
w,
...,
nib = c("horizontal", "diagonal", "square", "vertical"),
left = nib,
right = nib
)
height_slash_right(
dx,
dy,
w,
...,
nib = c("horizontal", "diagonal", "square", "vertical"),
left = nib,
right = nib
)
width_slash_left(
dx,
dy,
w,
...,
nib = c("horizontal", "diagonal", "square", "vertical"),
left = nib,
right = nib
)
width_slash_right(
dx,
dy,
w,
...,
nib = c("horizontal", "diagonal", "square", "vertical"),
left = nib,
right = nib
)Arguments
- dx
The difference
x_right - x_leftind_fslash()andd_bslash().- dy
The difference
y_bottom - y_topind_fslash()andd_bslash().- w
The (stroke) width of the slash "line".
- ...
Must be empty.
- nib, left, right
The shape of the "nib" tracing the line. This only affects the left and right ends.
See also
d_fslash() and d_bslash()
Examples
width_slash_left(6, 6, 1, nib = "horizontal")
#> [1] 1.273054
width_slash_left(6, 6, 1, left = "horizontal", right = "vertical")
#> [1] 1.414214
height_slash_left(6, 6, 1, nib = "diagonal")
#> [1] 0.7071068
height_slash_right(6, 6, 1, nib = "diagonal")
#> [1] 0.7071068
width_slash_right(6, 6, 1, nib = "vertical")
#> [1] 0