code: public double getSlopeTo( GridNode node ) {
          double slope = (elevation - node.elevation) / getDistance(node);
          return slope;
      }
docs: Calculates the slope from the current to the supplied point.
  
  @param node the node to which to calculate the slope to.
  @return the slope.