View source: R/osculating_geometry.R
| vc_plot_osculating_circle | R Documentation |
Display stored osculating circles
vc_plot_osculating_circle(
result,
curve_samples = NULL,
fill = c("ring", "disk"),
show_radius = FALSE,
title = NULL
)
result |
Result of vc_osculating_circle(). |
curve_samples |
Optional result of vc_curve_sample() for the same curve covering the circle parameters. |
fill |
Display either rings or triangulated disks. |
show_radius |
Logical flag to draw a segment from each center to its curve point. |
title |
Optional character title. |
Plotly widget with stored anchors and available circles.
if (requireNamespace("plotly",quietly=TRUE)) {
curve <- function(t)c(cos(t),sin(t),t/2)
vc_plot_osculating_circle(vc_osculating_circle(curve,pi/2),
vc_curve_sample(curve,c(0,pi)),show_radius=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.