aanpassing commentaar turn
This commit is contained in:
@@ -414,6 +414,9 @@ public class Worm {
|
|||||||
* |new.getOrientation() = this.getOrientation() + angle
|
* |new.getOrientation() = this.getOrientation() + angle
|
||||||
* @post the resulting angle (= the new orientation) must be between 0 and 2pi (including 0)
|
* @post the resulting angle (= the new orientation) must be between 0 and 2pi (including 0)
|
||||||
* |0 <= new.getOrientation() < 2pi
|
* |0 <= new.getOrientation() < 2pi
|
||||||
|
* @post current points of action points schould be reduced, for this there is another
|
||||||
|
* method with as parameter the given angle
|
||||||
|
* |substractPoints(angle)
|
||||||
*/
|
*/
|
||||||
public void turn(double angle) {
|
public void turn(double angle) {
|
||||||
assert 0 <= angle && angle < (2 * Math.PI);
|
assert 0 <= angle && angle < (2 * Math.PI);
|
||||||
|
Reference in New Issue
Block a user