Updating to version 0.8.0.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-03-20 00:39:26 -04:00
parent 88bdf256aa
commit 1159c606f7
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>itdelatrisu</groupId> <groupId>itdelatrisu</groupId>
<artifactId>opsu</artifactId> <artifactId>opsu</artifactId>
<version>0.7.0</version> <version>0.8.0</version>
<properties> <properties>
<timestamp>${maven.build.timestamp}</timestamp> <timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format> <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>

View File

@ -127,7 +127,7 @@ public class LinearBezier extends Curve {
} else } else
curve[i] = thisCurve; curve[i] = thisCurve;
} }
// if (hitObject.getRepeatCount() > 1) { // if (hitObject.getRepeatCount() > 1) {
Vec2f c1 = curve[0]; Vec2f c1 = curve[0];
int cnt = 1; int cnt = 1;
@ -135,11 +135,11 @@ public class LinearBezier extends Curve {
while (cnt <= ncurve && c2.cpy().sub(c1).len() < 1) while (cnt <= ncurve && c2.cpy().sub(c1).len() < 1)
c2 = curve[cnt++]; c2 = curve[cnt++];
this.startAngle = (float) (Math.atan2(c2.y - c1.y, c2.x - c1.x) * 180 / Math.PI); this.startAngle = (float) (Math.atan2(c2.y - c1.y, c2.x - c1.x) * 180 / Math.PI);
c1 = curve[ncurve]; c1 = curve[ncurve];
cnt = ncurve - 1; cnt = ncurve - 1;
c2 = curve[cnt--]; c2 = curve[cnt--];
while (cnt >= 0 && c2.cpy().sub(c1).len() < 1) while (cnt >= 0 && c2.cpy().sub(c1).len() < 1)
c2 = curve[cnt--]; c2 = curve[cnt--];
this.endAngle = (float) (Math.atan2(c2.y - c1.y, c2.x - c1.x) * 180 / Math.PI); this.endAngle = (float) (Math.atan2(c2.y - c1.y, c2.x - c1.x) * 180 / Math.PI);
// } // }