Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class vec3{
- public:
- vec3();
- vec3(float X, float Y, float Z);
- vec3 cross(const vec3 vec);
- vec3 scale(float scale);
- vec3 lerp(vec3 end, float time);
- bool operator!=(const vec3 vec);
- bool operator==(const vec3 vec);
- vec3 operator-(const vec3 vec);
- vec3 operator-(const float value);
- vec3 operator+(const vec3 vec);
- vec3 operator+(const float value);
- vec3 operator*(const vec3 vec);
- vec3 operator*(const float value);
- vec3 operator/(const float value);
- vec3 operator=(const float* value);
- vec3 operator+=(const vec3 vec);
- vec3 operator()(float x, float y, float z);
- vec3 operator-=(const vec3 vec);
- vec3 operator-=(const float value);
- vec3 operator*=(const vec3 vec);
- vec3 operator*=(const float value);
- vec3 forward();
- vec3 right();
- vec3 up();
- float* convert();
- float getX() const;
- float getY() const;
- float getZ() const;
- float getLength() const;
- float getMagnitude() const;
- float distanceTo(vec3 pos);
- void copy(vec3 result);
- void addX(float value);
- void addY(float value);
- void addZ(float value);
- void normalize();
- void zero();
- float x, y, z;
- };
- class vec4{
- public:
- vec4();
- vec4(float X, float Y, float Z, float W);
- vec4 lerp(vec4 vec, vec4 endpos, float time);
- bool operator!=(const vec4 vec);
- bool operator==(const vec4 vec);
- vec4 operator-(const vec4 vec);
- vec4 operator+(const vec4 vec);
- vec4 operator*(const vec4 vec);
- vec4 operator*(const float value);
- float getX() const;
- float getY() const;
- float getZ() const;
- float getW() const;
- void addX(float value);
- void addY(float value);
- void addZ(float value);
- void addW(float value);
- void zero();
- float x, y, z, w;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement