⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sphere.h

📁 This contains Graphic gems code
💻 H
字号:
/*************************************************************************									** 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -