-
DDA 算法的实现
数字微分分析器或只是简略的 DDA 直线绘制算法是用于光栅图形设备中绘制线条。在这种算法,在行的开始和结束位置已提供。
中介像素位置将在起始点和结束点之间的时间间隔的变量线性内插法计算。该算法如下所示:
让开始和结束点线的是 (x 1,y1) 和 (x2,y2),分别。所以坡、 m = (y2-y1)/(x2-x1)。根据 m 和该象限的 (x,y) 的值属于,中介像素职位要计算如下:
职位要计算如下:
象限
m < = 1
m > 1
第一次
x = x + 1
y = y + m
x = x + 1/m
y = y + 1
第二次
x = x 1
y = y + m
- 2022-08-10 08:17:23下载
- 积分:1
-
使用 c + + 编写的模拟水液滴幻灯片
这是简单的两个基础 psimulation 的水滑梯沿垂直墙,使用了 D2Q9 LBM 模型 !
- 2023-01-13 18:55:03下载
- 积分:1
-
opengl 控件 一个OpenGL程序,自己做的,有些地方可能不太好。解压缩无需密码。...
opengl 控件 一个OpenGL程序,自己做的,有些地方可能不太好。解压缩无需密码。-opengl OpenGL controls a procedure done, in some places may not be good. Decompress no password is required.
- 2022-03-29 20:00:26下载
- 积分:1
-
用OpenGL开发的机械臂运动仿真程序,开发环境为vc单文档
用OpenGL开发的机械臂运动仿真程序,开发环境为vc单文档-OpenGL-Robot-Arm-moving-simulate.rar
- 2023-08-16 15:50:03下载
- 积分:1
-
a rotating dizzy magic small chunks of the production process can be used as scr...
一个旋转的眩幻小方块的程序
可以作为制作一些屏幕保护程序的
初始例子-a rotating dizzy magic small chunks of the production process can be used as screen saver some of the initial example
- 2022-03-31 06:43:13下载
- 积分:1
-
一个用opengl制作的画立方体的小例子,供入门者学习
一个用opengl制作的画立方体的小例子,供入门者学习-use opengl produced a painting cube small examples for beginners learning
- 2022-09-12 15:10:03下载
- 积分:1
-
构造天空和地面,并能显示当前的位置和移动的速度,很适合3D游戏编程喔~...
构造天空和地面,并能显示当前的位置和移动的速度,很适合3D游戏编程喔~-Construction sky and ground, and can display the current location and moving speed, it is suitable for 3D Game Programming喔~
- 2022-08-23 23:12:01下载
- 积分:1
-
这是一本很好的opengl书籍,都是以具体例子来讲解opengl的,对于初学者很有帮助
这是一本很好的opengl书籍,都是以具体例子来讲解opengl的,对于初学者很有帮助-This is a very good opengl books, are based on concrete examples to explain the opengl and helpful for beginners
- 2022-01-25 15:47:02下载
- 积分:1
-
opengl开发库
opengl开发库-opengl development storehouse
- 2022-03-20 17:01:51下载
- 积分:1
-
Visual C++ 高级编程技术OpenGL篇
Visual C++ 高级编程技术OpenGL篇-Visual C programming OpenGL chapter
- 2023-01-20 02:25:03下载
- 积分:1