View Javadoc

1   /* File Transform2D.java 
2    *
3    * Project : Java Geometry Library
4    *
5    * ===========================================
6    * 
7    * This library is free software; you can redistribute it and/or modify it 
8    * under the terms of the GNU Lesser General Public License as published by
9    * the Free Software Foundation, either version 2.1 of the License, or (at
10   * your option) any later version.
11   *
12   * This library is distributed in the hope that it will be useful, but 
13   * WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
14   * or FITNESS FOR A PARTICULAR PURPOSE.
15   *
16   * See the GNU Lesser General Public License for more details.
17   *
18   * You should have received a copy of the GNU Lesser General Public License
19   * along with this library. if not, write to :
20   * The Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21   * Boston, MA 02111-1307, USA.
22   */
23  
24  // package
25  
26  package math.geom2d.transform;
27  
28  // Imports
29  import math.geom2d.Point2D;
30  
31  /**
32   * general class for all transformation in the plane, linear or not linear.
33   */
34  public interface Transform2D {
35  
36      // ===================================================================
37      // constants
38  
39      // ===================================================================
40      // class variables
41  
42      // ===================================================================
43      // constructors
44  
45      // ===================================================================
46      // accessors
47  
48      // ===================================================================
49      // modifiers
50  
51      // ===================================================================
52      // general methods
53  
54      /** Transforms a point */
55      public abstract Point2D transform(java.awt.geom.Point2D src);
56  
57      /** Transforms an array of points, and returns the transformed points. */
58  
59      public abstract Point2D[] transform(java.awt.geom.Point2D[] src,
60              Point2D[] dst);
61  
62  }