We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1e6fc commit 4b29bbaCopy full SHA for 4b29bba
display/rendering/canvas.c
@@ -315,10 +315,6 @@ DEFN_RENDER(triangle)
315
//
316
// [1]: https://en.wikipedia.org/wiki/Barycentric_coordinate_system
317
318
- // TODO: there may be nice mathy properties that prove these
319
- // always fit in 32 bits, but for now i'm using 64 bit
320
- // integers, which surely fit.
321
-
322
const int64_t det = ((int64_t)tri.y1 - (int64_t)tri.y2) *
323
((int64_t)tri.x0 - (int64_t)tri.x2) +
324
((int64_t)tri.x2 - (int64_t)tri.x1) *
0 commit comments