Elaztek Developer Hub
Blamite Game Engine - Strings  00386.06.16.23.0646.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 }
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
BlamPi
constexpr float BlamPi
Definition: math.h:13
math.h
BlamPi2
constexpr float BlamPi2
Definition: math.h:14
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
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
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