/[gzz]/gzz/doc/pegboard/1009/PEG_1009.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/1009/PEG_1009.rst

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

revision 1.1 by tjl, Sun Oct 6 15:52:21 2002 UTC revision 1.2 by tjl, Sun Oct 6 15:57:59 2002 UTC
# Line 10  PEG 1009: VobCoorder and AffineVobCoorde Line 10  PEG 1009: VobCoorder and AffineVobCoorde
10  Transformations  Transformations
11  ---------------  ---------------
12    
13  Add into VobCoorder the following convenience function::  Add into VobCoorder the following convenience functions::
14    
15      public int translate(int into, float x, float y) {      public int translate(int into, float x, float y) {
16          return coordsys(into, 0, x, y, 1, 1);          return coordsys(into, 0, x, y, 1, 1);
# Line 20  Add into VobCoorder the following conven Line 20  Add into VobCoorder the following conven
20          return coordsys(into, z, x, y, 1, 1);          return coordsys(into, z, x, y, 1, 1);
21      }      }
22    
23        public int scale(int into, float x, float y) {
24            return coordsys(into, 0, 0, 0, x, y);
25        }
26    
27    .. IMPORTANT:
28        Should 3D scaling be here as well?
29    
30  And into AffineVobCoorder the following convenience function::  And into AffineVobCoorder the following functions::
31    
32      int rotate(int into, float degrees);      int rotate(int into, float degrees);
33      int rotate3D(int into, float degrees, float x, float y, float z) ;      int rotate3D(int into, float degrees, float x, float y, float z) ;
34        int scale(int into, float x, float y, float z);
35    
36  .. IMPORTANT:  .. IMPORTANT:
37      Should we add default implementation of rotate?      Should we add default implementation of rotate?
38    
39    .. IMPORTANT:
40        Should rotate3D really be there? It extends the capabilities?
41        Should there be a third interface, ThreeDCoorder?
42    
43  Transforming points interactively  Transforming points interactively
44  ---------------------------------  ---------------------------------
45    
# Line 53  The reason for allowing the array pt[] t Line 63  The reason for allowing the array pt[] t
63  simply performance.  simply performance.
64    
65  .. IMPORTANT::  .. IMPORTANT::
66        Names?
67    
68    .. IMPORTANT::
69      Should we provide a form with a default return of float[] for convenience?      Should we provide a form with a default return of float[] for convenience?
70      How would inverse then work?      How would inverse then work?
71    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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