circleVertices: Generate vertex coordinates for a circle

View source: R/circleVertices.R

circleVerticesR Documentation

Generate vertex coordinates for a circle

Description

Generates vertex coordinates for a circle given its centre coordinates and radius.

Usage

circleVertices(xc, yc, radius, npoints = 25)

Arguments

xc

Value for centre X ordinate.

yc

Value for centre Y ordinate.

radius

Value for radius.

npoints

The number of distinct vertices required.

Value

A 2-column matrix of X and Y values. The final row is a copy of the first row to create a closed polygon, so the matrix has npoints + 1 rows.

See Also

circleLayoutVertices


packcircles documentation built on April 4, 2025, 1:45 a.m.