Ray/Box Intersection. Vertical line = 0 when there is intersection. 1 otherwise. @Desmos http://desmos.com/calculator/wj2knvclzo …pic.twitter.com/K95Vb5ODMX
Voit lisätä twiitteihisi sijainnin, esimerkiksi kaupungin tai tarkemman paikan, verkosta ja kolmannen osapuolen sovellusten kautta. Halutessasi voit poistaa twiittisi sijaintihistorian myöhemmin. Lue lisää
Although possible to get NaNs if the ray is axis-aligned. (try it yourself and see!).
Interestingly, in C++ with floating points axis-aligned rays are fine, since C++ can represent inf and -inf. Desmos says "undefined".
Indeed! The worst case is an axis-aligned ray that exactly overlaps with an edge of the box: https://tavianator.com/fast-branchless-raybounding-box-intersections-part-2-nans/ …
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.