/[gzz]/gzz/lava/test/gzz/loom/WheelView.test
ViewVC logotype

Diff of /gzz/lava/test/gzz/loom/WheelView.test

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

revision 1.7 by humppake, Thu Feb 27 17:05:25 2003 UTC revision 1.8 by humppake, Thu Feb 27 17:09:42 2003 UTC
# Line 70  def angle(p1, p2): Line 70  def angle(p1, p2):
70      elif x < 0 and y > 0: return math.pi/2 + math.atan(y/-x)      elif x < 0 and y > 0: return math.pi/2 + math.atan(y/-x)
71    
72  def getZ(vs, cs):  def getZ(vs, cs):
73        """
74        If vs is VobScene and cs a coordinate system transformation
75        within it, return the z coordinate of point (0,0,0)
76        after transformation.
77        """
78      tmp = jarray.zeros(3, 'f')      tmp = jarray.zeros(3, 'f')
79      vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp)      vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp)
80      return (tmp[2])      return (tmp[2])

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