zepto8 icon indicating copy to clipboard operation
zepto8 copied to clipboard

clamp here could not always give the correct value

Open zenodante opened this issue 3 years ago • 2 comments

https://github.com/samhocevar/zepto8/blob/0f704a3e9141584aa29b83571c63f4e891352a2d/src/pico8/gfx.cpp#L596

zenodante avatar Mar 08 '21 06:03 zenodante

The slop of the line would be wrong after clamp.

zenodante avatar Mar 08 '21 06:03 zenodante

That value should not affect the slope of the line, which is always (y1 - y0) / (x1 - x0), but I see how it can offset the whole line. Thanks for pointing this out!

samhocevar avatar Mar 08 '21 07:03 samhocevar