2D Circle Vectors

crc(x = double(), y = double(), r = double(), crs = wk_crs_auto())

as_crc(x, ...)

# S3 method for wk_crc
as_crc(x, ...)

# S3 method for matrix
as_crc(x, ..., crs = NULL)

# S3 method for data.frame
as_crc(x, ..., crs = NULL)

Arguments

x, y

Coordinates of the center

r

Circle radius

crs

A value to be propagated as the CRS for this vector.

...

Extra arguments passed to as_crc().

Value

A vector along the recycled length of bounds.

Examples

crc(1, 2, 3)
#> <wk_crc[1]>
#> [1] [1 2, r = 3]