Page 1 of 1

cpBBWrapVect edge case?

PostPosted: Sat Dec 19, 2009 12:09 pm
by viblo
I just noticed this behavior of cpBBWrapVect:
Code: Select all
cpBBWrapVect(BB(0,0,10,10), cpVect(10,0)) -> cpVect(10,10)

is this by design? My initial thought was that it would return cpVect(0,0) instead?

I haven't actually any use case for this method and the current behavior might be the desired one. Im just working through the api for pymunk and trying to understand what the different methods does..

Re: cpBBWrapVect edge case?

PostPosted: Sat Dec 19, 2009 3:30 pm
by slembcke
Probably not. I think I only ever used that function once though. I'll put it on the list of things to do.