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