fib_latt: Fibonacci lattice on the sphere

View source: R/angles.R

fib_lattR Documentation

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)

Arguments

n

number of points to be produced.

Value

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

Examples

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 = "")

polykde documentation built on Aug. 8, 2025, 6:55 p.m.