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

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

src/p/y/Pyrr-HEAD/pyrr/test/test_matrix44.py   Pyrr(Download)
    def test_create_from_matrix33( self ):
        mat = matrix33.create_identity()
        result = matrix44.create_from_matrix33( mat )
 
        expected = numpy.eye( 4 )

src/p/y/Pyrr-HEAD/pyrr/test/test_matrix33.py   Pyrr(Download)
    def test_create_identity( self ):
        result = matrix33.create_identity()
 
        expected = numpy.eye( 3 )
 
        def identity():
            mat = matrix33.create_identity()
            vec = vector3.unit.x
 
            result = matrix33.apply_to_vector( mat, vec )