diff --git a/OGP1718-Worms/src/worms/model/Worm.java b/OGP1718-Worms/src/worms/model/Worm.java index 0e2c627..7da7c3d 100644 --- a/OGP1718-Worms/src/worms/model/Worm.java +++ b/OGP1718-Worms/src/worms/model/Worm.java @@ -219,9 +219,12 @@ public class Worm { } /** + *check whether the given orientation is a valid orientation for the worm * * @param newOrientation - * @return + * the orientation to check + * @return True if and only if the orientation is bigger then and smaller then 2pi + * |result == ( newOrientation >= 0 && newOrientation < 2 * PI ) */ public static boolean isValidOrientation(double newOrientation) { return newOrientation >= 0 && newOrientation < 2 * PI;