SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Vector.hpp File Reference
#include <string>
#include <sstream>
#include <cmath>
#include <stdexcept>
#include <array>
#include <algorithm>
#include <cassert>
#include <iomanip>

Go to the source code of this file.

Classes

class  Sleak::Math::Vector< T, N >
class  Sleak::Math::Vector2D
class  Sleak::Math::Vector3D
class  Sleak::Math::Vector4D

Namespaces

namespace  Sleak
 Root namespace for everything the engine exposes.
namespace  Sleak::Math
 Vectors, matrices, quaternions, colors, AABBs, and random helpers.

Macros

#define EPSILON   1e-5f
#define VECTOR_Backward   Vector3D(0, 0, -1)
#define VECTOR_Down   Vector3D(0, -1, 0)
#define VECTOR_Forward   Vector3D(0, 0, 1)
#define VECTOR_Left   Vector3D(-1, 0, 0)
#define VECTOR_Right   Vector3D(1, 0, 0)
#define VECTOR_Up   Vector3D(0, 1, 0)

Functions

template<typename T, size_t N>
Vector< T, N > Sleak::Math::operator* (T scalar, const Vector< T, N > &vec)

Macro Definition Documentation

◆ EPSILON

#define EPSILON   1e-5f

Definition at line 20 of file Vector.hpp.

◆ VECTOR_Backward

#define VECTOR_Backward   Vector3D(0, 0, -1)

Definition at line 18 of file Vector.hpp.

◆ VECTOR_Down

#define VECTOR_Down   Vector3D(0, -1, 0)

Definition at line 14 of file Vector.hpp.

◆ VECTOR_Forward

#define VECTOR_Forward   Vector3D(0, 0, 1)

Definition at line 17 of file Vector.hpp.

◆ VECTOR_Left

#define VECTOR_Left   Vector3D(-1, 0, 0)

Definition at line 16 of file Vector.hpp.

◆ VECTOR_Right

#define VECTOR_Right   Vector3D(1, 0, 0)

Definition at line 15 of file Vector.hpp.

◆ VECTOR_Up

#define VECTOR_Up   Vector3D(0, 1, 0)

Definition at line 13 of file Vector.hpp.