sphere.h
来自「This contains Graphic gems code」· C头文件 代码 · 共 30 行
H
30 行
/************************************************************************* ** CLASS: Sphere ** AUTHOR: Jean-Francois DOUE ** LAST MODIFICATION: 12 Oct 1993 ** ** This class implements a sphere. ** *************************************************************************/#ifndef Sphere_h#define Sphere_h 1#include "Primitive.h"class Sphere : public Primitive{protected: double radius;public: // virtual methods double intersect(vec3& ray_org, vec3& ray_dir); vec3 normalAt(vec3& p); // friends friend istream& operator >> (istream& s, Sphere& a);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?