Commit 0e3e43c1 authored by mey's avatar mey
Browse files

added Rotation2D.java and test

added DirectionConstants
    moved direction constants from DirectionUtil
        updated imports in de.zmt.pathfinding
removed DirectionUtil
    made obsolete by Rotation2D
MathUtil.java
    moved normalizeAngle from DirectionUtil
parent 4e1f8ce3
package de.zmt.pathfinding;
import static de.zmt.util.DirectionUtil.NEUTRAL;
import static sim.util.DirectionConstants.NEUTRAL;
import sim.display.GUIState;
import sim.field.grid.ObjectGrid2D;
......
package de.zmt.pathfinding;
import static de.zmt.util.DirectionUtil.NEUTRAL;
import static sim.util.DirectionConstants.NEUTRAL;
import sim.util.Double2D;
......
package de.zmt.pathfinding;
import static de.zmt.util.DirectionUtil.*;
import static sim.util.DirectionConstants.*;
import java.util.logging.Logger;
......
......@@ -22,8 +22,8 @@ abstract class AbstractGridFilteringOp implements GridFilteringOp {
}
/**
* Constructs a new {@link AbstractGridFilteringOp}. For handling grid edges the
* given {@link EdgeHandler} is used.
* Constructs a new {@link AbstractGridFilteringOp}. For handling grid edges
* the given {@link EdgeHandler} is used.
*
* @param edgeHandler
* the edge handler to be used
......
......@@ -22,6 +22,7 @@ public class ConvolveOp extends AbstractGridFilteringOp implements Serializable
private static final long serialVersionUID = 1L;
private final Kernel kernel;
/**
* Constructs a new {@link ConvolveOp} with {@link EdgeHandler#getDefault()}
* .
......
......@@ -34,7 +34,6 @@ public class PotentialMapInspector extends AbstractPathfindingMapInspector<Poten
portrayal.setMap(ColorMapFactory.createForPotentials());
}
/**
* Overrides default {@link ColorMap} with a custom one.
*
......
......@@ -36,7 +36,6 @@ public class FilteringPotentialMapTest {
src.setTo(VALUE);
map.markDirty(0, 0);
assertThat("Value in map should reflect changed source.", map.obtainPotential(0, 0),
is(secondResult));
assertThat("Value in map should reflect changed source.", map.obtainPotential(0, 0), is(secondResult));
}
}
package de.zmt.pathfinding;
import static de.zmt.util.DirectionUtil.*;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static sim.util.DirectionConstants.*;
import org.junit.Before;
import org.junit.Test;
......
package de.zmt.pathfinding;
import static de.zmt.util.DirectionUtil.*;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static sim.util.DirectionConstants.*;
import org.hamcrest.Double2DCloseTo;
import org.junit.Before;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment