reuse Labels and OBB2Ds, cleanups

This commit is contained in:
Hannes Janetzek
2013-02-20 03:53:31 +01:00
parent 5f0779bf86
commit b43736a047
2 changed files with 137 additions and 161 deletions

View File

@@ -105,6 +105,10 @@ public class OBB2D {
computeAxes();
}
public OBB2D(){
}
public OBB2D(float cx, float cy, float width, float height, double acos, double asin) {
float vx = (float) acos * width / 2;
@@ -128,9 +132,7 @@ public class OBB2D {
computeAxes();
}
public OBB2D(float cx, float cy, float vx, float vy, float width, float height,
boolean normalized) {
public void setNormalized(float cx, float cy, float vx, float vy, float width, float height) {
float ux = -vy;
float uy = vx;