small changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user