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

Re: [pygame] Need Help with Distance Algorithm in Numeric



That does work for the case you show... yay! But the arrays will be arbitrarily large... and if you add even one more entry to your first array, it fails with this error:

ValueError: frames are not aligned

It's failing on the 'sum' calculation in the distance function.