登录
首页 » c++ » 计算机图形学第五章

计算机图形学第五章

于 2022-09-20 发布 文件大小:1.10 kB
0 110
下载积分: 2 下载次数: 1

代码说明:

 #include// OPenGL实用工具库  constint XL=100; constint XR=300; constint YB=100; constint YT=200; int x1=150,y1=50,x2=250,y2=150;  #defineLIFT 1 #defineRIGHT 2 #defineBOTTOM 4 #defineTOP 8 char encode(floatx,floaty) {  char c=0;  if(xXR) c|=RIGHT;  if(yYT) c|=TOP;  return c; }  void CSLineClip(int&x1,int&y1,int&x2,int&y2,intXL,intXR,intYB,intYT) {  char code1=encode(x1,y1);  char code2=encode(x2,y2);  int x,y;  char code = 3;  while (code1||code2)  {   if(code1 != 0)   {    code=code1;   }else   {

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • hologram-recon
    傅里叶全息图的光学重建,利用菲涅尔衍射,透镜菲涅尔衍射三部 仿真光学重建过程(simulating optical reconstruction hologram through fresnel diffraction, fourier lens,fresnel diffraction )
    2014-12-30 15:57:31下载
    积分:1
  • TinyEKF
    extend kalman filter for the location
    2018-06-16 19:55:59下载
    积分:1
  • C# SqlDataReader
    2022-07-21 12:05:06下载
    积分:1
  • MVBDemo_1_00
    基于wince的MVB总线COM-1240板卡的一些demo程序(This demo software can demonstrate how two COM-1240 boards can communicate one to each other through the MVB bus. It runs under Windows CE 4.2.)
    2021-01-03 17:28:55下载
    积分:1
  • Selective
    数据链路层滑动窗口协议的设计与实现源码 信道模型为8000bps 全双工卫星信道,信道传播时延270 毫秒,信道误码率为10-5,信道提供字节流传输服务,网络层分组长度在240~256字节范围。(Sliding window data link layer protocol design and implementation of source-channel model 8000bps full-duplex satellite channel, the channel propagation delay 270 ms, the channel bit error rate of 10-5, the channel provides a byte stream transfer service, network layer packet length in the range of 240 to 256 bytes.)
    2013-12-08 11:45:53下载
    积分:1
  • 1046.-Plane-Spotting
    大多数自行车速度表工作通过使用霍尔效应传感器固定在自行车前叉。磁铁是附加到前轮上的辐条之一,它将与霍尔效应开关一次革命的车轮。速度计监测传感器计数轮革命。如果知道车轮的直径,距离可以很容易地计算如果你知道有多少革命的车轮。此外,如果时间完成革命,平均速度也可以计算出来。 对于这个问题,您将编写一个程序来确定总距离(英里)和平均速度(英里每小时)考虑到车轮直径,革命的数量和总时间的旅行。你可以假定前轮从未离开地面,并没有下滑或打滑。(Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it will line up with the Hall Effect switch once per revolution of the wheel. The speedometer monitors the sensor to count wheel revolutions. If the diameter of the wheel is known, the distance traveled can be easily be calculated if you know how many revolutions the wheel has made. In addition, if the time it takes to complete the revolutions is known, the average speed can also be calculated. For this problem, you will write a program to determine the total distance traveled (in miles) and the average speed (in Miles Per Hour) given the wheel diameter, the number of revolutions and the total time of the trip. You can assume that the front wheel never leaves the ground, and there is no slipping or skidding.)
    2013-12-21 14:06:26下载
    积分:1
  • kongdong3
    一个螺旋矩阵程序,当时找了好久才找到 和大家分享啊,一个螺旋矩阵程序,当时找了好久才找到 和大家分享啊。(A spiral matrix program, at that time for a long time to find and share it A spiral matrix program, at that time for a long time to find and share it )
    2011-12-04 18:16:14下载
    积分:1
  • 65520779skype_protocol
    skype protocol description for embedded Skype development
    2011-12-12 18:37:55下载
    积分:1
  • 三次样条插值
    说明:  求解3次样条插值,用于拟合函数,数值分析中作业....(function which used for function fitting)
    2020-12-23 18:58:26下载
    积分:1
  • 7_seg driver
    使用altera de1的7段例程董事会.nios二
    2023-03-31 18:40:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载