/// <summary> /// Creates ViewVector from spatialVector. /// Note: spatialVector MUST originate from origin. /// </summary> public ViewVector(Vector3 spatialVector) { Theta = Intersector.RadToDeg(AdjAtanTheta(spatialVector.x, spatialVector.z)); Phi = Intersector.RadToDeg(AdjAtanPhi(spatialVector)); }