Useful QMath3d Functions