- return good;
- } else {
- Vertex v = (Vertex)o;
- if (v.e==null || v.norm().dot(Vertex.this.norm()) < 0)
- return false;
- return true;
- }
- }
-
- public boolean move(Vec v) {
- Matrix m = Matrix.translate(v);
-
- boolean good = true;
- for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to)
- good &= p.transform(m);
-
- if (good) {
- for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to)
- p.reComputeErrorAround();
- } else {
- for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to)
- p.transform(Matrix.translate(v.times(-1)));