R/bary2sph.R

Defines functions bary2sph

bary2sph <- function(Ib, T, P) {
  if (!is.matrix(Ib$p)) {
    Ib$p <- as.matrix(Ib$p, ncol=3)
  }
  if (!is.matrix(T)) {
    T <- as.matrix(T, ncol=3)
  }
  return(.Call("bary2sph", as.integer(Ib$idx), Ib$p, matrix(as.integer(T), ncol=3), P, PACKAGE="retistruct"))
}

Try the retistruct package in your browser

Any scripts or data that you put into this service are public.

retistruct documentation built on April 4, 2020, 5:08 p.m.