rename cosTheta variable in Vector3.project per @WestLangley