Fixed bug in ProjectMatrix due to wrongly implemented tan(real)