/[gzz]/gzz/gzz/vob/AffineVobCoorder.java
ViewVC logotype

Diff of /gzz/gzz/vob/AffineVobCoorder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by tjl, Thu Aug 22 11:58:52 2002 UTC revision 1.8 by tjl, Wed Sep 25 14:45:43 2002 UTC
# Line 26  package gzz.vob; Line 26  package gzz.vob;
26   */   */
27    
28  public abstract class AffineVobCoorder implements VobCoorder {  public abstract class AffineVobCoorder implements VobCoorder {
29      /** Create a new coordinate system.      /** Default implementation using affineCoordsys.
30       */       */
31      public int coordsys(int into, Object key, float depth,      public int coordsys(int into, float depth,
32                  float x, float y, float w, float h) {                  float x, float y, float w, float h) {
33          return affineCoordsys(into, key, depth, x+w/2.0f, y+h/2.0f,          return affineCoordsys(into, depth, x+w/2.0f, y+h/2.0f,
34                              w/2.0f, 0, 0, h/2.0f);                              w/2.0f, 0, 0, h/2.0f);
35      }      }
36    
37      public int coordsys(Object key, float depth,      public abstract int affineCoordsys(int into, float depth,
                 float x, float y, float w, float h) {  
         return coordsys(0, key, depth, x, y, w, h);  
     }  
   
   
     public abstract int affineCoordsys(int into, Object key, float depth,  
38              float x, float y,              float x, float y,
39                  float xx, float xy, float yx, float yy);                  float xx, float xy, float yx, float yy);
40    
     public int affineCoordsys(Object key, float depth,  
             float x, float y,  
                 float xx, float xy, float yx, float yy) {  
         return affineCoordsys(0, key, depth, x, y, xx, xy, yx, yy);  
     }  
41  }  }
42    
43    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26