commentaar isValidOrientation()
This commit is contained in:
@@ -219,9 +219,12 @@ public class Worm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*check whether the given orientation is a valid orientation for the worm
|
||||||
*
|
*
|
||||||
* @param newOrientation
|
* @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) {
|
public static boolean isValidOrientation(double newOrientation) {
|
||||||
return newOrientation >= 0 && newOrientation < 2 * PI;
|
return newOrientation >= 0 && newOrientation < 2 * PI;
|
||||||
|
Reference in New Issue
Block a user