circleOnTheUnitSphere: Circle on the unit sphere

Description Usage Arguments Details Value Examples

View source: R/TrajectoryGeometry.R

Description

Find a circle on the unit 2-sphere

Usage

1
circleOnTheUnitSphere(center, radius, N = 36)

Arguments

center

- The center of the circle.

radius

- The radius of the circle.

N

- The number of segments to approximate the circle. It defaults to 36.

Details

Given a point on the unit 2-sphere and a radius given as a spherical distance, this finds the circle.

It's not clear to me this should be exported, but it's handy to do this for testing and debugging.

Value

This returns an approximation to the the circle as a N+1 x 3 matrix

Examples

1
2
3
pole = c(1,0,0)
radius = pi / 4
circle = circleOnTheUnitSphere(pole,radius)

AnnaLaddach/TrajectoryGeometry documentation built on Jan. 28, 2021, 10:41 a.m.