R/abc2xy.R

Defines functions abc2xy

Documented in abc2xy

abc2xy <-
function(abc)
{
	tmat = c(1 / sqrt(3), 0, 2 / sqrt(3), 1, 0, 0)
	dim(tmat) = c(3, 2)
	res = as.matrix(abc) %*% tmat
	colnames(res) = c("x", "y")
	res
}

Try the trifield package in your browser

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

trifield documentation built on May 29, 2017, 11:44 p.m.