示例#1
0
 public void Copy(ProjectionMapCoordsTrans obj)
 {
     enabled          = obj.enabled;
     RotateAxisNorm   = new Vector3D(obj.RotateAxisNorm.X, obj.RotateAxisNorm.Y, obj.RotateAxisNorm.Z);
     RotationAngleCos = obj.RotationAngleCos;
     RotationAngleSin = obj.RotationAngleSin;
     theta0           = obj.theta0;
     phi0             = obj.phi0;
 }
示例#2
0
 public void SetPolePositionRelative(double theta1, double phi1, double theta2, double phi2)
 {
     if ((theta1 != theta2) || (phi1 != phi2))
     {
         ProjectionMapCoordsTrans trans = new ProjectionMapCoordsTrans();
         trans.SetRotationByGreatCircle(theta1, phi1, theta2, phi2);
         double theta = theta0;
         double phi   = phi0;
         trans.Transform(ref theta, ref phi);
         SetPolePositionAbsolute(theta, phi);
     }
 }