Elaztek Developer Hub
Blamite Game Engine - Strings  00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
math.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 
6 
7 #ifdef STRINGS_EXPORTS
8 #define STRINGS_API __declspec(dllexport)
9 #else
10 #define STRINGS_API __declspec(dllimport)
11 #endif
12 
13 constexpr float BlamPi = 3.1415926535897932384626433832795f;
14 constexpr float BlamPi2 = 6.2831853071795864769252867665590f;
15 constexpr float BlamPiHalf = 1.5707963267948966192313216916398f;
16 constexpr float BlamPiQuarter = 0.7853981633974483096156608458199f;
17 
22 {
32  STRINGS_API bool FloatIsInteger(float float_value);
33 
41  STRINGS_API float FloatDegreesToRadians(float float_value);
42 
50  STRINGS_API float FloatRadiansToDegrees(float float_value);
51 
58 
69  STRINGS_API float GetDistance2D(float x1, float y1, float x2, float y2);
70 
79  STRINGS_API float GetDistance2D(BlamVector2 first, BlamVector2 second);
80 
90 }
BlamVector4::w
float w
The W-coordinate of the 4D vector.
Definition: vector.h:167
BlamStrings::Utils::Math::FloatDegreesToRadians
STRINGS_API float FloatDegreesToRadians(float float_value)
Converts a float value from Degrees to Radians.
Definition: math.cpp:20
BlamStrings::Utils::Math::FloatRadiansToDegrees
STRINGS_API float FloatRadiansToDegrees(float float_value)
Converts a float value from Radians to Degrees.
Definition: math.cpp:25
BlamStrings::Utils::Math
Namespace containing math-related utilities.
Definition: math.h:21
BlamVector3::y
float y
The Y-coordinate of the 3D vector, representing horizontal Y (depth) position.
Definition: vector.h:83
BlamVector3::x
float x
The X-coordinate of the 3D vector, representing horizontal X (width) position.
Definition: vector.h:82
BlamVector3
Structure representing a 3D vector.
Definition: vector.h:80
BlamPi
constexpr float BlamPi
Definition: math.h:13
BlamVector4::y
float y
The Y-coordinate of the 4D vector.
Definition: vector.h:165
BlamStrings::Utils::Math::GetQuaternionFromRotation
STRINGS_API BlamVector4 GetQuaternionFromRotation(BlamVector3 rotation)
Generates a quaternion from XYZ (Yaw, Pitch, Roll) rotation angles.
Definition: math.cpp:51
math.h
BlamPi2
constexpr float BlamPi2
Definition: math.h:14
BlamVector3::z
float z
The Z-coordinate of the 3D vector, representing vertical position.
Definition: vector.h:84
BlamVector2::x
float x
The X-coordinate of the 2D vector, representing horizontal position.
Definition: vector.h:26
STRINGS_API
#define STRINGS_API
Definition: math.h:10
BlamVector4
Structure representing a 4D vector.
Definition: vector.h:162
BlamPiQuarter
constexpr float BlamPiQuarter
Definition: math.h:16
BlamStrings::Utils::Math::GenerateRandomUInt64
STRINGS_API uint64_t GenerateRandomUInt64()
Generates a random unsigned 64-bit integer.
Definition: math.cpp:30
BlamPiHalf
constexpr float BlamPiHalf
Definition: math.h:15
BlamVector2::y
float y
The Y-coordinate of the 2D vector, representing vertical position.
Definition: vector.h:27
vector.h
BlamVector2
Structure representing a 2D vector.
Definition: vector.h:24
BlamStrings::Utils::Math::GetDistance2D
STRINGS_API float GetDistance2D(float x1, float y1, float x2, float y2)
Calculates the distance between two points in 2D space.
Definition: math.cpp:41
BlamVector4::x
float x
The X-coordinate of the 4D vector.
Definition: vector.h:164
BlamVector4::z
float z
The Z-coordinate of the 4D vector.
Definition: vector.h:166
BlamStrings::Utils::Math::FloatIsInteger
STRINGS_API bool FloatIsInteger(float float_value)
Determines whether or not the specified float is a valid integer.
Definition: math.cpp:8