vc_plot_frenet_frame: Display a stored Frenet frame on a sampled spatial curve

View source: R/frenet_frame.R

vc_plot_frenet_frameR Documentation

Display a stored Frenet frame on a sampled spatial curve

Description

Display a stored Frenet frame on a sampled spatial curve

Usage

vc_plot_frenet_frame(
  result,
  frame,
  scale = 1,
  components = c("tangent", "normal", "binormal"),
  title = NULL
)

Arguments

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.

Value

Plotly widget with the sampled curve, frame anchor and available selected directions. No curve or derivative functions are evaluated.

Examples

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)
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.