arc_to_df: Convert '<path>' arc to a data.frame of coordinates

Description Usage Arguments Details Value

View source: R/svg-path-arc.R

Description

Reference https://svgwg.org/svg2-draft/implnote.html#ArcConversionEndpointToCenter

Usage

1
arc_to_df(params, npoints)

Arguments

params

named list of arc parameters from the path segment i.e. xo, y0, x, y, arcflag, sweepflag, rx, ry, rot (degrees)

npoints

number of points along arc

Details

ToDo: actual rotation of arc coords by 'phi'

Value

data.frame of coodinates of arc


coolbutuseless/svgparser documentation built on Dec. 26, 2021, 12:03 a.m.