 |
Blamite Game Engine - Strings
00453.06.08.26.0624.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
6 #define STRINGS_API __declspec(dllexport)
8 #define STRINGS_API __declspec(dllimport)
11 #define BV3_OGRE(vector3) Ogre::Vector3(vector3.x, vector3.y, vector3.z)
12 #define OGRE_BV3(vector3) BlamVector3(vector3.x, vector3.y, vector3.z)
13 #define BV2_OGRE(vector3) Ogre::Vector2(vector3.x, vector3.y)
14 #define OGRE_BV2(vector3) BlamVector2(vector3.x, vector3.y)
15 #define BV3_BX(vector3) bx::Vec3(vector3.x, vector3.y, vector3.z)
16 #define BX_BV3(vector3) BlamVector3(vector3.x, vector3.y, vector3.z)
62 std::string ToString(
int decimals = -1);
201 std::string ToString(
int decimals = -1);
227 BlamVector3 ToDirection(
bool convert_to_radians =
true);
320 BlamVector4(
float _x,
float _y,
float _z,
float _w);
329 std::string ToString(
int decimals = -1);
BlamVector4()
Constructs a new BlamVector4.
Definition: vector.h:296
BlamVector4 operator*(const BlamVector4 &vector)
Multiplies the values of two 4D vectors.
Definition: BlamVector4.cpp:65
BlamVector4 operator+(const BlamVector4 &vector)
Combines the values of two 4D vectors.
Definition: BlamVector4.cpp:39
std::string ToString(int decimals=-1)
Converts the vector to a string, with each value separated by commas.
Definition: BlamVector4.cpp:27
BlamVector3 ConvertDegreesToRadians()
Converts all coordinates in the vector from degrees to radians.
Definition: BlamVector3.cpp:43
BlamVector3()
Constructs a new BlamVector4.
Definition: vector.h:138
float w
The W-coordinate of the 4D vector.
Definition: vector.h:291
STRINGS_API float FloatDegreesToRadians(float float_value)
Converts a float value from Degrees to Radians.
Definition: math.cpp:20
#define STRINGS_API
Definition: vector.h:8
STRINGS_API float FloatRadiansToDegrees(float float_value)
Converts a float value from Radians to Degrees.
Definition: math.cpp:25
float y
The Y-coordinate of the 3D vector, representing horizontal Y (depth) position.
Definition: vector.h:132
BlamVector2 Normalize()
Normalizes the vector.
Definition: BlamVector2.cpp:26
float x
The X-coordinate of the 3D vector, representing horizontal X (width) position.
Definition: vector.h:131
Structure representing a 3D vector.
Definition: vector.h:129
BlamVector3 operator+(const BlamVector3 &vector)
Converts this vector to a bx::Vec3.
Definition: BlamVector3.cpp:134
std::string ToString(int decimals=-1)
Converts the vector to a string, with each value separated by commas.
Definition: BlamVector2.cpp:11
float y
The Y-coordinate of the 4D vector.
Definition: vector.h:289
BlamVector3 ConvertRadiansToDegrees()
Converts all coordinates in the vector from radians to degrees.
Definition: BlamVector3.cpp:55
BlamVector3 ConvertForBGFX()
Constructs a new BlamVector3 from an existing bx::Vec3.
Definition: BlamVector3.cpp:37
float DotProduct(BlamVector2 other)
Calculates the dot product with another vector2.
Definition: BlamVector2.cpp:21
float z
The Z-coordinate of the 3D vector, representing vertical position.
Definition: vector.h:133
float x
The X-coordinate of the 2D vector, representing horizontal position.
Definition: vector.h:48
BlamVector3 operator-(const BlamVector3 &vector)
Subtracts the values of two 3D vectors.
Definition: BlamVector3.cpp:158
BlamVector2()
Definition: vector.h:51
STRINGS_API float Normalize(float value, float min, float max)
Normalizes a value between a minimum and maximum range.
Definition: math.cpp:67
BlamVector2 operator*(const BlamVector2 &vector)
Multiplies the values of two 2D vectors.
Definition: BlamVector2.cpp:74
Structure representing a 4D vector.
Definition: vector.h:286
bool Equals(BlamVector3 vector)
Checks if this vector is equal to another.
Definition: BlamVector3.cpp:67
BlamVector2 operator-(const BlamVector2 &vector)
Subtracts a vector from another vector.
Definition: BlamVector2.cpp:41
STRINGS_API std::string FloatToString(float value, int max_decimals=-1)
Converts a floating-point number to a string.
Definition: converters.cpp:349
BlamVector2 operator+(const BlamVector2 &vector)
Combines the values of two 2D vectors.
Definition: BlamVector2.cpp:52
void Normalize()
Normalizes the vector.
Definition: BlamVector3.cpp:87
float DistanceTo(BlamVector3 other)
Determines the distance between this vector and another.
Definition: BlamVector3.cpp:100
std::string ToString(int decimals=-1)
Converts the vector to a string, with each value separated by commas.
Definition: BlamVector3.cpp:26
BlamDirection
Enumerator listing possible directions.
Definition: vector.h:21
float y
The Y-coordinate of the 2D vector, representing vertical position.
Definition: vector.h:49
Structure representing a 2D vector.
Definition: vector.h:46
BlamVector3 ToDirection(bool convert_to_radians=true)
Converts this vector to a direction vector.
Definition: BlamVector3.cpp:109
float x
The X-coordinate of the 4D vector.
Definition: vector.h:288
BlamAxis
Definition: vector.h:31
float z
The Z-coordinate of the 4D vector.
Definition: vector.h:290
BlamVector3 operator*(const BlamVector3 &vector)
Multiplies the values of two 3D vectors.
Definition: BlamVector3.cpp:170