Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Macros | Functions
vector.h File Reference
#include "math.h"
#include <ostream>
#include <SDL_rect.h>
+ Include dependency graph for vector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector
 

Macros

#define vector_null   Vector(0.0f, 0.0f, 0.0f)
 
#define vector_up   Vector(0.0f, -1.0f, 0.0f)
 
#define vector_down   Vector(0.0f, 1.0f, 0.0f)
 
#define vector_left   Vector(-1.0f, 0.0f, 0.0f)
 
#define vector_right   Vector(1.0f, 0.0f, 0.0f)
 
#define vector_identity   Vector(1.0f, 1.0f, 1.0f)
 

Functions

Vector vBlend (Vector &, Vector &, float)
 
float fDist (Vector &, Vector &)
 
float fDist2 (Vector &_v1, Vector &_v2)
 
Vector vNormal (Vector &_v1, bool bLeftSide=true)
 
float fAngle (Vector &_v1, Vector &_v2)
 

Macro Definition Documentation

◆ vector_down

#define vector_down   Vector(0.0f, 1.0f, 0.0f)

Definition at line 136 of file vector.h.

◆ vector_identity

#define vector_identity   Vector(1.0f, 1.0f, 1.0f)

Definition at line 139 of file vector.h.

◆ vector_left

#define vector_left   Vector(-1.0f, 0.0f, 0.0f)

Definition at line 137 of file vector.h.

◆ vector_null

#define vector_null   Vector(0.0f, 0.0f, 0.0f)

Definition at line 134 of file vector.h.

◆ vector_right

#define vector_right   Vector(1.0f, 0.0f, 0.0f)

Definition at line 138 of file vector.h.

◆ vector_up

#define vector_up   Vector(0.0f, -1.0f, 0.0f)

Definition at line 135 of file vector.h.

Function Documentation

◆ fAngle()

float fAngle ( Vector _v1,
Vector _v2 
)
inline

Definition at line 182 of file vector.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ fDist()

float fDist ( Vector _v1,
Vector _v2 
)
inline

Definition at line 143 of file vector.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ fDist2()

float fDist2 ( Vector _v1,
Vector _v2 
)
inline

Definition at line 154 of file vector.h.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ vBlend()

Vector vBlend ( Vector _v1,
Vector _v2,
float  _fc 
)

Definition at line 36 of file vector.cpp.

References GameEngine::fDt, and GetComponentTypeID_Static().

Referenced by Vector::Blend(), and CameraSystem::UpdateCameraFollow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vNormal()

Vector vNormal ( Vector _v1,
bool  bLeftSide = true 
)
inline

Definition at line 165 of file vector.h.

References GetComponentTypeID_Static(), and Vector::x.

+ Here is the call graph for this function: