/**************************************************************************** Copyright (c) 2003, Landmark Graphics and others. All rights reserved. This program and accompanying materials are made available under the terms of the Common Public License - v1.0, which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html ****************************************************************************/ package com.lgc.wsh.opt.test; import java.util.Arrays; import junit.framework.TestCase; import junit.framework.TestSuite; import com.lgc.wsh.opt.CoordinateTransform; import com.lgc.wsh.util.Almost; import com.lgc.wsh.util.Array; /** Wrap com.lgc.wsh.opt.CoordinateTransform for junit testing. (junit.jar must be in CLASSPATH) */ public class CoordinateTransformTest extends TestCase { /** Test CoordinateTransform class @throws Exception */ public void testAll() throws Exception { double[][] in = new double[][] { {1.,1.}, {2.,2.}, {3.,4.}, }; double[][] out = new double[][] { {2.}, {4.}, {7.}, }; double[][] inCopy = Array.copy(in); double[][] outCopy = Array.copy(out); CoordinateTransform ls = new CoordinateTransform(1, 2); for (int j=0; j