[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] euclid.Vector2 to pygame coordinate tuple shortcut?



Jake b wrote:
I wanted to use this to call pygame functions, ( I am not writing new
functions in this way )

(It would save code and make it clearer then typing out the two
members every time.)

'tuple()' seems to work this way :)
Since a euclid Vector supports the slice operator you can probably just pass a Vector, as is, to a pygame function with tuple of two integer values is expected.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>