Defines functions stretch_to_unitspheroid

Documented in stretch_to_unitspheroid

#' Stretches the ellipsoid (hellip) to the unit spheroid of the same dimension.  Both the input ellipsoid and unit spheroid are centered at the origin.
#' @param hellip The original shape to be stretched
#' @return A list of: hellip1 - a new unit spheroid, mapped from the ellipsoid and tfm - transformation matrix that creates the stretching

stretch_to_unitspheroid <- function(hellip){
  V <- vertices(hellip)
  tfm <- solve(V)
  hellip1 <- transform_ellipsoid(hellip, tfm)

Try the SyScSelection package in your browser

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

SyScSelection documentation built on Oct. 26, 2020, 5:08 p.m.