Learn R Programming

polykde (version 1.1.7)

fib_latt: Fibonacci lattice on the sphere

Description

Computes the Fibonacci lattice on the sphere \(\mathcal{S}^2\) to produce pseudo-equispaced points.

Usage

fib_latt(n)

Value

A matrix of size c(n, 3) with the spherical coordinates.

Arguments

n

number of points to be produced.

Examples

Run this code
scatterplot3d::scatterplot3d(
  fib_latt(n = 200), pch = 19, color = viridis::viridis(200),
  xlim = c(-1, 1), ylim = c(-1, 1), zlim = c(-1, 1),
  xlab = "", ylab = "", zlab = "")

Run the code above in your browser using DataLab