/* by 边明明,西安邮电学院。*/
/*这个是俺自己写的一个c语言图形库和数学库,在tc2.0下测试通过。请大家放心使用O_o!
所有函数是相对于调整的坐标原点进行画图的,不是以屏幕原点坐标,这一点请大家注意!!!
特点是所有作图函数加入了颜色设置,
特别加入了3D作图,3D作图时要初始化观察者的坐标和距离(InitPer())。
还要初始化观察者相对与x轴旋转角,相对与xy平面的俯视角(InitPoltting())。
因为所有的3D作图函数都是相对于这个初始值进行作图的。
注意:在包含这个库时还要包含进stdio.h,dos.h,conio.h,math.h,graphics.h,math.inc这些库。
这里也可以一个include "myhead.h"。这个文件在压缩包里。
您可以在这个基础上继续建立自己的库。您也可以进行任意修改。O_o!
嘿嘿!俺做的很粗略,请大家批评指正!!!
这里有几个例子:3Ddemo.c,3Ddemo2.c,3Ddemo3.c。
bmmm906@sohu.com
qq:53793208
西安邮电学院南校区 电科0303班 75号信箱。
/* by Bian Mingming, Xi'an University of Posts and Telecommunications. */
/*This is a C language graphics library and math library I wrote myself, tested and passed under TC2.0. Please use it with confidence O_o!
All functions draw relative to the adjusted coordinate origin, not the screen origin coordinate. Please pay attention to this!!!
The feature is that all drawing functions are added with color settings,
and 3D drawing is specially added. When doing 3D drawing, you need to initialize the observer's coordinates and distance (InitPer()).
Also, initialize the observer's rotation angle relative to the x-axis and the angle of depression relative to the xy plane (InitPoltting()).
Because all 3D drawing functions are drawn relative to this initial value.
Note: When including this library, you also need to include stdio.h, dos.h, conio.h, math.h, graphics.h, math.inc and other libraries.
Here you can also have an include "myhead.h". This file is in the compressed package.
You can continue to build your own library on this basis. You can also make any modifications. O_o!
Hehe! I did it very roughly, please criticize and correct!!!
Here are a few examples: 3Ddemo.c, 3Ddemo2.c, 3Ddemo3.c.
bmmm906@sohu.com
qq:53793208
Class 0303, Electronic Science, South Campus, Xi'an University of Posts and Telecommunications, Mailbox 75.