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

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

src/p/y/Pyrr-HEAD/pyrr/test/test_vector.py   Pyrr(Download)
        def single_vector():
            vec = numpy.array( [ 1.0, 1.0, 1.0 ] )
            length = 2.0
            result = vector.set_length( vec, length )
 
        def batch_vector():
            vec = numpy.array( [ 1.0, 1.0, 1.0 ] )
            length = 2.0
            batch = numpy.tile( vec, (3,1) )
            result = vector.set_length( batch, length )