code: function (worldWindow) {
              if (!worldWindow) {
                  throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "GoToAnimator", "constructor",
                      "missingWorldWindow"));
              }
  
              /**
               * The WorldWindow associated with this animator.
               * @type {WorldWindow}
               * @readonly
               */
              this.wwd = worldWindow;
  
              /**
               * The frequency in milliseconds at which to animate the position change.
               * @type {Number}
               * @default 20
               */
              this.animationFrequency = 20;
  
              /**
               * The animation's duration, in milliseconds. When the distance is short, less than twice the viewport
               * size, the travel time is reduced proportionally to the distance to travel. It therefore takes less
               * time to move shorter distances.
               * @type {Number}
               * @default 3000
               */
              this.travelTime = 3000;
  
              /**
               * Indicates whether the current or most recent animation has been cancelled. Use the cancel() function
               * to cancel an animation.
               * @type {Boolean}
               * @default false
               * @readonly
               */
              this.cancelled = false;
          }
docs: Constructs a GoTo animator.
  @alias GoToAnimator
  @constructor
  @classdesc Incrementally and smoothly moves a {@link Navigator} to a specified position.
  @param {WorldWindow} worldWindow The WorldWindow in which to perform the animation.
  @throws {ArgumentError} If the specified WorldWindow is null or undefined.