Skip to contents

Generates a sequence of 2D points evenly spaced on the unit circle.

Usage

seq_circle(n)

Arguments

n

An integer value specifying the number of points in the sequence.

Value

A base::list of length-2 numeric vectors storing 2D points evenly spaced on the unit circle.

Examples

seq_circle(10)
#> [[1]]
#> [1] 1 0
#> 
#> [[2]]
#> [1] 0.8090170 0.5877853
#> 
#> [[3]]
#> [1] 0.3090170 0.9510565
#> 
#> [[4]]
#> [1] -0.3090170  0.9510565
#> 
#> [[5]]
#> [1] -0.8090170  0.5877853
#> 
#> [[6]]
#> [1] -1.000000e+00  1.224647e-16
#> 
#> [[7]]
#> [1] -0.8090170 -0.5877853
#> 
#> [[8]]
#> [1] -0.3090170 -0.9510565
#> 
#> [[9]]
#> [1]  0.3090170 -0.9510565
#> 
#> [[10]]
#> [1]  0.8090170 -0.5877853
#>