code: private static double getLength(BoundingBox boundingBox,
  			ProjectionTransform toWebMercatorTransform) {
  		BoundingBox transformedBoundingBox = boundingBox
  				.transform(toWebMercatorTransform);
  		return getLength(transformedBoundingBox);
  	}
docs: Get the length of the bounding box projected using the transformation
  
  @param boundingBox
  @param toWebMercatorTransform
  @return length