+ //return (float)Math.max(length(), midpoint().distance(nearest.p));
+ //return length();
+ float nearest_distance = midpoint().distance(nearest.p);
+ float other_distance =
+ (p1.p.distance(error_against.nearest(p1.p).p)+
+ p2.p.distance(error_against.nearest(p2.p).p))/2;
+ return nearest_distance/other_distance;
+ */
+ //return length();
+ return t==null?0:(1/t.aspect());