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ää
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/ …
1/0 = NaN instead of Inf is a fairly recent change. Math teachers were not fans of 1/0 = Inf...
really? It makes sense. In y=1/x, as x approaches 0, y approaches inf. Makes sense that div 0 would be inf.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.