21 Jan
2015
21 Jan
'15
8:40 a.m.
On 21/01/15 07:20, Lee Kwok-Long wrote:
Dear Joe, Thanks a lot for your reply. Also, I want to tell the authors that I can not receive the reply through email. Is my email address added to mailing list? Kwok-Long Lee
Hi again, I just realised that there is an error in the `square` function that I posted, and that it will not actually run. It should read: def square(W, H, centre): def shape_function(pos): return (centre[0] - W/2 <= pos[0] <= centre[0] + W/2 and centre[1] - H/2 <= pos[1] <= centre[0] + H/2) return shape_function It was just missing an `and` at the end of line #4. Thanks, Joe