📄 object3d.h
字号:
/************************************************************************* ** CLASS: Object3D ** AUTHOR: Jean-Francois DOUE ** LAST MODIFICATION: 12 Oct 1993 ** ** This class is an abstract root class for all the 3D objects. ** It stores the position an the orientation of the object ** *************************************************************************/#ifndef Object3D_h#define Object3D_h 1#include "algebra3.h"class Object3D{protected: vec3 pos; mat4 orient;public: void setPosition(vec3& p) { pos = p; }; vec3 position() { return pos; }; void setOrientation(mat4& o) { orient = o; }; mat4 orientation() { return orient; }; // friends friend istream& operator >> (istream& s, Object3D& a);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -