View source: R/TrajectoryGeometry.R
circleOnTheUnitSphere | R Documentation |
Find a circle on the unit 2-sphere
circleOnTheUnitSphere(center, radius, N = 36)
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. |
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.
This returns an approximation to the the circle as a N+1 x 3 matrix
pole = c(1,0,0)
radius = pi / 4
circle = circleOnTheUnitSphere(pole,radius)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.