pth_to_cartesian | R Documentation |
Convert between Cartesian and polar coordinates
pth_to_cartesian(mat_polar, chroma_min = 1e-04) pth_to_polar(mat_cartesian)
mat_polar |
|
chroma_min |
|
mat_cartesian |
|
matrix
with same dimension as the input matrix.
polar <- matrix(c(50, 0, 45), ncol = 3) cart <- pth_to_cartesian(polar) polar_new <- pth_to_polar(cart) # notice the chroma value has an artificial floor # using an imperceptible (color) difference print(polar) print(cart) print(polar_new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.