Last active
March 30, 2018 04:15
-
-
Save agoldis/e96d5bca0a3845f0023e38395e1fabf8 to your computer and use it in GitHub Desktop.
comment frustration - renaming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<PhotosCollection> getPhotosCollectionsWithinRadius(List<Locations> locationsList) { | |
List<PhotosCollection> photosCollection = new ArrayList<>(); | |
final Double TWO = new Double(2); | |
final Double RADIUS = new Double(10); | |
for(Location location: locationsList) { | |
if((Math.pow(x, TWO) + Math.pow(y, TWO)) < Math.pow(RADIUS, TWO)) { | |
photosCollection.add(location.getPhotosCollection()); | |
} | |
} | |
return photosCollection; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment