ellipse: Points on an Ellipse

Description Usage Arguments Value Author(s) Examples

View source: R/misc.R

Description

This functions computes npoints regularly spaced along an ellipse.

Usage

1
ellipse(x, y, width, height, angle, npoints = 100)

Arguments

x, y

Numeric values corresponding to the coordinates of the center of the ellipse.

width, height

Numeric values corresponding to the width and height of the ellipse.

angle

Numeric value corresponding to the angle of the ellipse relative to the y axis.

npoints

The number of points to compute.

Value

A matrix with two columns corresponding to the x and y coordinates of the points.

Author(s)

Simon Garnier, garnier@njit.edu

Examples

1
plot(ellipse(0, 0, 30, 50, 33), asp = 1)

swarm-lab/trackR documentation built on April 19, 2021, 3:02 p.m.