📄 types.h
字号:
#ifndef VRMLLIB_TYPES_H
#define VRMLLIB_TYPES_H
#include <vector>
namespace vrmllib {
struct vec2 {
float x, y;
};
struct vec3 {
float x, y, z;
vec3() {}
vec3(float x_, float y_, float z_) : x(x_), y(y_), z(z_) {}
};
struct col3 {
float r, g, b;
col3() {}
col3(float r_, float g_, float b_) : r(r_), g(g_), b(b_) {}
};
class rot {
public:
rot() : vector(0,0,1), radians(0) {}
rot(float x, float y, float z, float r) : vector(x,y,z), radians(r) {}
vec3 vector;
float radians;
};
} // namespace vrmllib
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -