Fix a porting error in Line#getSide().

This commit is contained in:
Jürg Lehni 2011-06-14 12:27:37 +01:00
parent 44670ebdd9
commit c85ddf2abe

View file

@ -98,7 +98,7 @@ var Line = this.Line = Base.extend({
if (ccw == 0) {
ccw = v2.dot(v1);
if (ccw > 0) {
ccw = (v2 - v1).dot(v1);
ccw = v2.subtract(v1).dot(v1);
if (ccw < 0)
ccw = 0;
}