small changes

This commit is contained in:
2018-03-11 20:03:04 +01:00
parent 8e5e976c00
commit 23a6fcd4b9
2 changed files with 6 additions and 1 deletions

View File

@@ -208,6 +208,11 @@ public class Worm {
this.orientation = orientation;
}
/**
*
* @param newOrientation
* @return
*/
public static boolean isValidOrientation(double newOrientation) {
return newOrientation >= 0 && newOrientation < 2 * PI;
}