Rename icons inline

Jos van den Oever kdelists at vandenoever.info
Thu Jul 31 16:14:19 BST 2003


On Thursday 31 July 2003 16:06, Leo Savernik wrote:

> Manhattan distance? pls explain.

int QPoint::manhattanLength () const

Returns the sum of the absolute values of x() and y(), traditionally known as 
the "Manhattan length" of the vector from the origin to the point. The 
tradition arises since such distances apply to travelers who can only travel 
on a rectangular grid, like the streets of Manhattan. 

This is a useful approximation to the true length, 
sqrt(pow(x(),2)+pow(y(),2)).





More information about the kfm-devel mailing list