hammer_to_sph | R Documentation |
Computes the Hammer projection of points on the sphere.
sph_to_hammer(x)
hammer_to_sph(y)
x |
matrix of size |
y |
matrix of size |
sph_to_hammer
: the matrix y
.
hammer_to_sph
: the matrix x
.
# Plot Fibonacci lattice
plot(sph_to_hammer(fib_latt(n = 1000)))
points(sph_to_hammer(rbind(c(0, 0, 1), c(0, 0, -1))), col = 2, pch = 19)
points(sph_to_hammer(rbind(c(1, 0, 0), c(-1, 0, 0))), col = 3, pch = 19)
points(sph_to_hammer(rbind(c(0, 1, 0), c(0, -1, 0))), col = 4, pch = 19)
# Check changes of coordinates
hammer_to_sph(sph_to_hammer(rbind(c(1, 0, 0), c(0, 1, 0))))
sph_to_hammer(hammer_to_sph(rbind(c(0, 0), c(0.5, 0.5))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.