perifocalToCartesianMatrix function uses result parameter
cleaned up more documentation