text: public final DoubleValuesSource makeRecipDistanceValueSource(Shape queryShape) {Rectangle bbox = queryShape.getBoundingBox();double diagonalDist = ctx.getDistCalc().distance(ctx.makePoint(bbox.getMinX(), bbox.getMinY()), bbox.getMaxX(), bbox.getMaxY());double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f;DoubleValuesSource distance = makeDistanceValueSource(queryShape.getCenter(), 1.0);return new ReciprocalDoubleValuesSource(c, distance);}