circleOnTheUnitSphere: Circle on the unit sphere

View source: R/TrajectoryGeometry.R

circleOnTheUnitSphereR Documentation

Circle on the unit sphere

Description

Find a circle on the unit 2-sphere

Usage

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

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

AnnaLaddach/TrajectoryGeometry documentation built on Feb. 23, 2024, 2:24 p.m.