Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/p/y/PyGLy-HEAD/pygly/examples/scene_sorting.py   PyGLy(Download)
        def setup_camera():
            # create our camera node
            self.camera = CameraNode( 'camera', pyrr.matrix44.create_identity() )
            self.scene_root.add_child( self.camera )
 

src/p/y/PyGLy-HEAD/pygly/examples/scene_scene_graph.py   PyGLy(Download)
        def setup_camera():
            # create our camera node
            self.camera = CameraNode( 'camera', pyrr.matrix44.create_identity() )
            self.scene_root.add_child( self.camera )
 

src/p/y/PyGLy-HEAD/pygly/examples/scene_multiple_viewports.py   PyGLy(Download)
 
            # create our camera node
            self.camera2 = CameraNode( 'camera2', pyrr.matrix44.create_identity() )
            self.camera2_parent.add_child( self.camera2 )
 

src/p/y/Pyrr-HEAD/pyrr/test/test_matrix44.py   Pyrr(Download)
    def test_create_identity( self ):
        result = matrix44.create_identity()
 
        expected = numpy.eye( 4 )
 
    def test_create_matrix33_view( self ):
        mat = matrix44.create_identity()
        result = matrix44.create_matrix33_view( mat )
 
        expected = numpy.eye( 3 )
        def identity():
            mat = matrix44.create_identity()
            vec = vector3.unit.x
 
            result = matrix44.apply_to_vector( mat, vec )
        def translation():
            mat = matrix44.create_identity()
            vec = numpy.array([0.0, 0.0, 0.0])
            mat[3,0:3] = [1.0, 2.0, 3.0]