Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/s/y/sympy-HEAD/sympy/plotting/pygletplot/plot_camera.py   sympy(Download)
from plot_rotation import get_spherical_rotatation
from util import get_model_matrix
from util import screen_to_model, model_to_screen
from util import vec_subs
 
    def mouse_translate(self, x, y, dx, dy):
        glPushMatrix()
        glLoadIdentity()
        glTranslatef(0, 0, -self._dist)
        z = model_to_screen(0, 0, 0)[2]

src/s/y/sympy-0.7.5/sympy/plotting/pygletplot/plot_camera.py   sympy(Download)
from plot_rotation import get_spherical_rotatation
from util import get_model_matrix
from util import screen_to_model, model_to_screen
from util import vec_subs
 
    def mouse_translate(self, x, y, dx, dy):
        glPushMatrix()
        glLoadIdentity()
        glTranslatef(0, 0, -self._dist)
        z = model_to_screen(0, 0, 0)[2]

src/s/y/sympy-polys-HEAD/sympy/plotting/plot_camera.py   sympy-polys(Download)
from pyglet.gl import *
from plot_rotation import get_spherical_rotatation
from util import get_model_matrix
from util import screen_to_model, model_to_screen
from util import vec_subs
    def mouse_translate(self, x, y, dx, dy):
        glPushMatrix()
        glLoadIdentity()
        glTranslatef(0,0,-self._dist)
        z = model_to_screen(0,0,0)[2]