static DoublePt addDoublePts(DoublePt a, DoublePt b) { ret a == null ? b : b == null ? a : new DoublePt(a.x+b.x, a.y+b.y); }