R/vectorsToEP.R

Defines functions vectorsToEP

Documented in vectorsToEP

vectorsToEP <- function(u, v, h='right'){

	axis <- cprod(u, v, h)
	angle <- avec(u, v)
	R <- tMatrixEP(axis, angle)
	euler_angles <- rotationMatrixToEP(R)

	euler_angles
}

Try the linkR package in your browser

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

linkR documentation built on May 2, 2019, 2:14 p.m.