vc_plot_osculating_circle: Display stored osculating circles

View source: R/osculating_geometry.R

vc_plot_osculating_circleR Documentation

Display stored osculating circles

Description

Display stored osculating circles

Usage

vc_plot_osculating_circle(
  result,
  curve_samples = NULL,
  fill = c("ring", "disk"),
  show_radius = FALSE,
  title = NULL
)

Arguments

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.

Value

Plotly widget with stored anchors and available circles.

Examples

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

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