 |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
14 #ifndef VEC3_H_DEFINED
15 #define VEC3_H_DEFINED
32 Vec3(
double newX = 0,
double newY = 0,
double newZ = 0);
54 Vec3& operator*=(
const double right);
58 bool operator==(
const Vec3& right);
60 bool operator!=(
const Vec3& right);
62 double magnitude(
void);
double y
Y coordinate of the vector.
Definition: vec3.h:28
1 x 3 vector to be used for math.
Definition: vec3.h:22
RUNE_ENGINE std::ostream & operator<<(std::ostream &os, const rune::Vec2 &vector)
Stream operator overloading so that vectors can be printed to the console.
double z
Z coordinate of the vector.
Definition: vec3.h:30
double x
X coordinate of the vector.
Definition: vec3.h:26
RUNE_ENGINE double crossProduct(rune::Vec2 const &vec1, rune::Vec2 const &vec2)
Cross product calculation of two vectors.
1 x 2 vector to be used for math.
Definition: vec2.h:20
RUNE_ENGINE rune::Vec2 normalize(rune::Vec2 const &vec)
Divides each component of a vector by the vector magnitude to make the vector magnitude equal to 1.
RUNE_ENGINE double dotProduct(rune::Vec2 const &vector1, rune::Vec2 const &vector2)
Dot product calculation of two vectors.
RUNE_ENGINE Vec2 operator/(double scalar, Vec2 vec)
Overload of / operator for a scalar.
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21
RUNE_ENGINE rune::Vec2 operator*(rune::Vec2 const &vec, rune::Mat2 &mat)
Overload of multiplication operator for a rune::Mat2.