| vc_plot_frenet_frame | R Documentation |
Display a stored Frenet frame on a sampled spatial curve
vc_plot_frenet_frame(
result,
frame,
scale = 1,
components = c("tangent", "normal", "binormal"),
title = NULL
)
result |
Result of vc_curve_sample(). |
frame |
Result of vc_frenet_frame() for the same curve at a parameter within the sampled interval. |
scale |
Positive length of each displayed unit direction, in the physical coordinate units of the curve. |
components |
Character vector selecting tangent, normal and/or binormal. |
title |
Optional character title. |
Plotly widget with the sampled curve, frame anchor and available selected directions. No curve or derivative functions are evaluated.
if(requireNamespace("plotly",quietly=TRUE)) {
helix <- function(t)c(cos(t),sin(t),t/2)
vc_plot_frenet_frame(vc_curve_sample(helix,c(0,2*pi)),
vc_frenet_frame(helix,pi/4),scale=.7)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.