相关书籍
C++ :
光线跟踪V1(版本①):最简单的框架
根据书的顺序把源程序列出来,一个光线跟踪最简单最基本的场景

Ray.h 光线_工具类
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #ifndef _RAY_ #define _RAY_
#include"Point3D.h" #include"Vector3D.h"
class Ray {
public: Point3D o; Vector3D d; Ray(void); Ray(const Point3D &origin, const Vector3D &dir); Ray(const Ray& ray);
Ray& operator=(const Ray& rhs); ~Ray(void); }; #endif
|