code: @Pure
  	public final Transform2D toTransform2D(Point2D<?, ?> startPoint, Point2D<?, ?> endPoint) {
  		assert startPoint != null : AssertMessages.notNullParameter(0);
  		assert endPoint != null : AssertMessages.notNullParameter(1);
  		return toTransform2D(startPoint.getX(), startPoint.getY(), endPoint.getX(), endPoint.getY());
  	}
docs: Replies a 2D transformation that is corresponding to this transformation.
  
  @param startPoint is the 2D position of the start point of the segment.
  @param endPoint is the 2D position of the end point of the segment
  @return the 2D transformation.