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]) |