/[gzz]/gzz/test/gzz/gfx/gl/glvobcoorder.test
ViewVC logotype

Diff of /gzz/test/gzz/gfx/gl/glvobcoorder.test

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

revision 1.9 by tjl, Sat Oct 12 10:18:09 2002 UTC revision 1.10 by tjl, Tue Oct 15 15:00:38 2002 UTC
# Line 14  def checkTrans(c, cs, srclist, dstlist, Line 14  def checkTrans(c, cs, srclist, dstlist,
14  def testTransform():  def testTransform():
15      c = GLVobCoorder()      c = GLVobCoorder()
16    
17      cs1 = c.coordsys(0, 5, 10, 15, 0.5, 1)      cs1 = c.ortho(0, 5, 10, 15, 0.5, 1)
18      checkTrans(c, cs1, [0, 0, 0, 1, 1, 1], [10, 15, 5, 10.5, 16, 6])      checkTrans(c, cs1, [0, 0, 0, 1, 1, 1], [10, 15, 5, 10.5, 16, 6])
19    
20      cs2 = c.scaleXYZ(0, 2, 3, 4)      cs2 = c.scale(0, 2, 3, 4)
21      checkTrans(c, cs2, [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 3, 4])      checkTrans(c, cs2, [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 3, 4])
22    
23      cs3 = c.distort(0, 0, 0, 0.1, 0.1, 20, 5)      cs3 = c.distort(0, 0, 0, 0.1, 0.1, 20, 5)
# Line 61  def testInverses(): Line 61  def testInverses():
61      for i in range(0,5):      for i in range(0,5):
62          c = GLVobCoorder()          c = GLVobCoorder()
63    
64          cs_ortho = c.coordsys(0, 2, 3.5, 9.1, 1.2, 3.9)          cs_ortho = c.ortho(0, 2, 3.5, 9.1, 1.2, 3.9)
65          cs_ortho2 = c.coordsys(cs_ortho, -1.92, 4.1, 2.951, 2.52, 291)          cs_ortho2 = c.ortho(cs_ortho, -1.92, 4.1, 2.951, 2.52, 291)
66          cs_rot = c.rotateXY(0, 15)          cs_rot = c.rotate(0, 15)
67          cs_rot2 = c.rotateXY(cs_ortho, 15.8)          cs_rot2 = c.rotate(cs_ortho, 15.8)
68          cs_rot3 = c.rotateXYZ(cs_rot2, 15, 1, 2, 3)          cs_rot3 = c.rotateXYZ(cs_rot2, 15, 1, 2, 3)
69          cs_ortho3 = c.coordsys(cs_rot, -1.92, 4.1, 2.951, 2.52, 291)          cs_ortho3 = c.ortho(cs_rot, -1.92, 4.1, 2.951, 2.52, 291)
70          cs_ortho4 = c.coordsys(cs_rot2, -1.92, 4.1, 2.951, 2.52, 291)          cs_ortho4 = c.ortho(cs_rot2, -1.92, 4.1, 2.951, 2.52, 291)
71          cs_ortho5 = c.coordsys(cs_rot3, -1.92, 4.1, 2.951, 2.52, 291)          cs_ortho5 = c.ortho(cs_rot3, -1.92, 4.1, 2.951, 2.52, 291)
72    
73          checkInverse(c, cs_rot)          checkInverse(c, cs_rot)
74          checkInverse(c, cs_rot2)          checkInverse(c, cs_rot2)

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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