Elaztek Developer Hub
Blamite Game Engine - Strings  00347.12.11.21.1920.blamite
A library containing general purpose utilities and classes for use in multiple projects.
vector.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef STRINGS_EXPORTS
4 #define STRINGS_API __declspec(dllexport)
5 #else
6 #define STRINGS_API __declspec(dllimport)
7 #endif
8 
9 enum class BlamDirection
10 {
11  Forward,
12  Backward,
13  Left,
14  Right,
15  Up,
16  Down
17 };
18 
23 {
24  float x = 0.0f;
25  float y = 0.0f;
26 
34  BlamVector2 operator+(const BlamVector2& vector);
35 
43  BlamVector2 operator+(const float& _float);
44 
52  BlamVector2 operator*(const BlamVector2& vector);
53 
61  BlamVector2 operator*(const float& _float);
62 };
63 
68 {
69  float x = 0.0f;
70  float y = 0.0f;
71  float z = 0.0f;
72 
79  BlamVector3 ConvertForBGFX();
80 
86  BlamVector3 ConvertDegreesToRadians();
87 
95  BlamVector3 operator+(const BlamVector3& vector);
96 
104  BlamVector3 operator+(const float& _float);
105 
113  BlamVector3 operator*(const BlamVector3& vector);
114 
122  BlamVector3 operator*(const float& _float);
123 };
BlamDirection::Backward
@ Backward
STRINGS_API
#define STRINGS_API
Definition: vector.h:6
BlamDirection::Down
@ Down
BlamVector3
Structure representing a 3D vector.
Definition: vector.h:67
BlamDirection::Up
@ Up
BlamDirection::Forward
@ Forward
BlamDirection::Left
@ Left
BlamDirection::Right
@ Right
BlamDirection
BlamDirection
Definition: vector.h:9
BlamVector2
Structure representing a 2D vector.
Definition: vector.h:22