isl_convex_hull.c: valid_direction: properly normalize valid direction
commit6e292a5327beef7aa91a83f7acd0eba2e5053405
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 23 Mar 2010 23:07:14 +0000 (24 00:07 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 23 Mar 2010 23:07:14 +0000 (24 00:07 +0100)
tree945cf0c735754b164bcb18836e2c49633b98e176
parentcf06bf41b213f72dd4a6d8ac8d13e6b7d36b7bda
isl_convex_hull.c: valid_direction: properly normalize valid direction

The original code would only normalize all but one of the coordinates
of the valid direction, possibly resulting in a scaled direction, which
may no longer be valid.  Normalize the whole vector, resulting in only
a change of representation and not a change of direction.
isl_convex_hull.c