Math.abs(this.d-line.d) <= epsilon)
return this;
float x = (line.c-this.c)/(this.m-line.m);
- if (Math.abs( (m*x+c)-(line.m*x+line.c) ) > epsilon ) return null;
- if (Math.abs( (n*x+d)-(line.n*x+line.d) ) > epsilon ) return null;
+ if (Math.abs( (m*x+c)-(line.m*x+line.c) ) > epsilon ) return AffineConstraint.NONE;
+ if (Math.abs( (n*x+d)-(line.n*x+line.d) ) > epsilon ) return AffineConstraint.NONE;
return new Point(x, m*x+c, n*x+d);
}