protected void checkInput ( Point3d [ ] fixed , Point3d [ ] moved ) { if ( fixed . length != moved . length ) throw new IllegalArgumentException ( "Point arrays to superpose are of different lengths." ) ; }
Check that the input to the superposition algorithms is valid .