double angleBetween(Vector3 vec) { var dotProduct = dot(vec); var cosAngle = dotProduct / (vec.norm() * norm()); return acos(cosAngle); }