From 6288d46945365e2225bbc2ec842249051ca74533 Mon Sep 17 00:00:00 2001 From: Leen Dereu Date: Sun, 11 Mar 2018 21:15:25 +0100 Subject: [PATCH] commentaar isValidOrientation() --- OGP1718-Worms/src/worms/model/Worm.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;