Switching away from the profs vector class in favour of QVector3D, which offers built in methods for cross products and dot products.