fixed point sqrt

This commit is contained in:
Tomas Frydrych
2007-01-17 13:03:52 +00:00
parent 2f0737491b
commit 9a28ac34cd
5 changed files with 311 additions and 15 deletions

View File

@ -196,9 +196,8 @@ node_distance (const ClutterKnot *begin,
if (clutter_knot_equal (begin, end))
return 0;
/* FIXME: need fixed point here */
return sqrt ((end->x - begin->x) * (end->x - begin->x) +
(end->y - begin->y) * (end->y - begin->y));
return clutter_sqrti ((end->x - begin->x) * (end->x - begin->x) +
(end->y - begin->y) * (end->y - begin->y));
}
static gint