| 7 | {\r\n\ |
| 8 | float x, y, z;\r\n\ |
| 9 | void vec3(float xx, float yy, float zz){ x = xx; y = yy; z = zz; }\r\n\ |
| 10 | \r\n\ |
| 11 | float length(){ return sqrt(x*x+y*y+z*z); }\r\n\ |
| 12 | float dot(vec3 ref v){ return x*v.x+y*v.y+z*v.z; }\r\n\ |
| 13 | \r\n\ |
| 14 | float w;\r\n\ |