19#ifndef HEADER_SCRIPTVEC3_HPP
20#define HEADER_SCRIPTVEC3_HPP
22#include <angelscript.h>
26 void RegisterVec3(asIScriptEngine *engine);
34 float getX()
const {
return x; }
35 float getY()
const {
return y; }
36 float getZ()
const {
return z; }
38 float getLength()
const
40 return sqrt(x*x + y*y + z*z);
44 SimpleVec3(
float p_x,
float p_y,
float p_z) : x(p_x), y(p_y), z(p_z) { }
Definition: scriptvec3.hpp:29