arc2line: Convert an arc into line segments given the center of the...

View source: R/hull2line.R

arc2lineR Documentation

Convert an arc into line segments given the center of the arc, the radius, the vector, and the angle (radians)

Description

Convert an arc into line segments given the center of the arc, the radius, the vector, and the angle (radians)

Usage

arc2line(center, r, vector, theta, npoints = 100)

Arguments

center

The coordinates of the center

r

The radius of the arc

vector

The vector of the arc

theta

The angle of the arc in radians

npoints

Number of points along the arc

Value

The Line object that approximates the given arc

Examples

arc2line(center = c(0.5, -0.1), r = 0.2, vector = c(0.1, 1), theta = 0.04)

babichmorrowc/hull2spatial documentation built on Oct. 22, 2023, 12:28 a.m.