Jeah - I've not much to do currently... (If you know something we need more urgently than this convex-hull code - I could also do that)
I'm currently trying to understand Tom's code. 4 eyes mostly find the error more easily...
I'm wondering about what I found here in the constructor of Plane:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| public Plane(float a, float b, float c, float d) { float total = (float) Math.sqrt(a*a+b*b+c*c); this.a = a/total; this.b = b/total; this.c = c/total; this.d = d/total; float dividor = (float) Math.sqrt(a*a+b*b+c*c); nx = a / dividor; ny = b / dividor; nz = c / dividor; p = d / dividor; } |
divider = total
nx = this.a
ny = this.b
nz = this.c
p = this.d
why compute everything twice? (Ok doesn't seem to be very problematic, but it's bugging me none the less)
+ from my first impression it looks well commented
