- if (other.bindingGroup == this.bindingGroup) {
- if (getBindingMatrix(other).equals(bindingMatrix))
- return;
- /*
- throw new Error("rebind attempt: "+this+" and "+other+" with "
- + bindingMatrix
- + "; expected "
- + getBindingMatrix(other));
- */
- Matrix vom = other.getBindingMatrix(bindingGroup.getMaster());
- Matrix v2 = bindingMatrix;
- Matrix v3 = getBindingMatrix(other);
- Matrix m = vom.inverse().times(v2.inverse()).times(v3).times(vom);
- bindingGroup.krank = bindingGroup.krank.times(m);
- /*
- System.err.println("WARNING: discarding rebind attempt: "+this+" and "+other+m);
- */
- //" with "
- //+ bindingMatrix
- //+ "; expected "
- //+ getBindingMatrix(other));
- return;
- }
-
-