开发者

Is there a good integer only line rasterization algorithm?

开发者 https://www.devze.com 2022-12-14 21:01 出处:网络
I\'ve been working on building a simple 3d graphic engine and I\'m trying to find a good integer based line rasterization algorithm. ( I\'m not trying 开发者_JAVA技巧to re-invent the wheel, I\'m tryin

I've been working on building a simple 3d graphic engine and I'm trying to find a good integer based line rasterization algorithm. ( I'm not trying 开发者_JAVA技巧to re-invent the wheel, I'm trying to get a deeper understanding of wheels).

Are there any line rasterizing algorithms that don't rely on any floating point math?

Thanks.


Bresenham's line algorithm is integer only.

0

精彩评论

暂无评论...
验证码 换一张
取 消