code: public AStarSegmentOrientation<ST, PT> setSegmentOrientationTool(AStarSegmentOrientation<ST, PT> tool) {
  		final AStarSegmentOrientation<ST, PT> old = this.segmentOrientation;
  		this.segmentOrientation = tool;
  		return old;
  	}
docs: Set the tool that permits to retreive the orinetation of the segments.
  
  @param tool the tool for retreiving the orientation of the segments.
  @return the old tool.