For Programmers: Free Programming Magazines  


Home > Archive > Tcl > August 2007 > Re: Select a canvas line "point"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Select a canvas line "point"
suchenwi

2007-08-27, 11:26 am

On 24 Aug., 21:46, jengl...@flightlab.com (Joe English) wrote:

> Just one suggestion: when searching for the minimum, compare the
> squares of the distances instead of the distances; the former
> is less effort to calculate.


I'd however expect that hypot() as a single function call will be
faster than two multiplications and one addition on the Tcl side...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com