- Home /
Bounds NaN issue
i'm in the middle of some code that requires the use of the Bounds struct and I started getting some weird behavior when using them. I took a screenshot of visual studio that reproduces the behavior, however I don't understand why it's happening.
the top 2 lines simply create a new bounds and I set the min/max. as soon as I do, the y component becomes NaN..
so I re-created the entire scenario using vectors only. when I mimic, what appears to me, as the exact behavior, I get differing values.. using vectors I get -inf.. using the bounds struct I get NaN..
is this a bug?
please advise..
Answer by Marionette · Jan 28, 2014 at 08:44 PM
ok, so I feel pretty stupid lol. I was looking at min in the bounds struct, but testing max with my vectors.. sigh.. gonna be a long day..
there is another thing though.. aren't float.Maxvalue or float.MinValue valid values to use?
Your answer
Follow this Question
Related Questions
How do I keep an Ortho camera in a specific range when the ortho changes? 3 Answers
Checking if ground is 'level' 1 Answer
Imported mesh bounds size is alwasy too big and pivot point is not aligned 1 Answer
Shader LOD 1 Answer
How to stop view from scrolling when edge of view collides with a game object? 0 Answers