Why are you negating NEGATIVE_INFINITY? tom On Jun 23, 2014, at 2:55 PM, Deneau, Tom <tom.deneau at amd.com> wrote: > double direction = (gid & 1) == 0 ? Double.POSITIVE_INFINITY : -Double.NEGATIVE_INFINITY; >