Image missing.
Ray Tracing in J

created: May 28, 2025, 5:44 p.m. | updated: May 31, 2025, 1:54 p.m.

Ray Tracing in J2020-04-18I've been reading up on J and decided another small project was in order, this time I've written a minimal ray tracer. sqrt of sum of squaresThe comment should suffice for those who don't yet know the syntax of J but it may be worth pointing out two interesting details. applied to an array y (0&< y) # (] y) NB. Thus far all of my verbs have taken only 1 or 2 arguments, as is usual for J verbs. (width (x y)) 'xcoord ycoord'=.

1 week, 4 days ago: Hacker News