PresetSubmove.java should be modified in direction():
-if (strokePoints.size() < 2) {
+if (strokePoints.isEmpty()) {
throw
new IllegalStateException(
- "At least 2 sample points are needed to establish a "
+ "At least 1 sample point is needed to establish a "
+ "direction!"
);
}
PresetSubmove.java
should be modified indirection()
:The change should be propagated in the for loop.