Last active
April 4, 2021 06:38
-
-
Save agoldis/1dd14bfb71add9996824f9e54ccf973b to your computer and use it in GitHub Desktop.
Comments frustration - comment example
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
List<ResultType> resultsList = new ArrayList<>(); | |
final Double TWO = new Double(2); | |
final Double LIMIT = new Double(10); | |
for(ItemType item: itemsList) { | |
// add items' photos located within circle with radius LIMIT | |
// to a collection of photos | |
if(Math.pow(item.x, TWO) + Math.pow(item.y, TWO) < Math.pow(LIMIT, TWO)) { | |
resultsList.add(item.toResultType()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment