convertCoordinates {ODEnetwork} | R Documentation |
Converts a given matrix with two rows from polar to cartesian coordinates and vice versa.
convertCoordinates(coords, convertto = "cartesian")
coords |
[ |
convertto |
[ |
a matrix with converted coordinates
if (interactive()) {
coordsK <- rbind(c(3, 0), c(1, 3), c(0, 2), c(-3, 1), c(-1, 0), c(-1, -3), c(0, -2), c(2, -3))
coordsP <- convertCoordinates(coordsK, "polar")
}