x3dom/x3dom — pull request #360 by simonthum (2014-06-20 10:33:41+00:00)
Title: Don' use Number.MIN_VALUE for Vec3f.MIN

I'm not 100% sure about his one, but I stumbled on it trying to make sense of the LOD changes.

From Mozilla: "The Number.MIN_VALUE property represents the smallest
positive numeric value representable in JavaScript.

The MIN_VALUE property is the number closest to 0, not the most
negative number, that JavaScript can represent.

MIN_VALUE has a value of approximately 5e-324. Values smaller than
MIN_VALUE ("underflow values") are converted to 0."

This means: x>= MIN_VALUE == x > 0 for all x

and is almost never what one wanted it to mean. Vec3f.MIN
is used exclusively for getVolume()-related things which
suports that this is indeed -MAX_VALUE that is expected.

Signed-off-by: Simon Thum