Platform Data Engine 0.0.1
A data-driven game engine for platformers
PlatformDataEngine::Utility Class Reference

Utility class for holding helper functions More...

#include <Utility.h>

Static Public Member Functions

static std::string generate_uuid_v4 ()
 
static float getRandomFloat (float min, float max)
 
static sf::Vector2f rotatePoint (sf::Vector2f point, sf::Vector2f origin, float angle)
 
static sf::Vector2f lerp (sf::Vector2f a, sf::Vector2f b, float t)
 
static b2Vec2 lerp (b2Vec2 a, b2Vec2 b, float t)
 
static float lerp (float a, float b, float t)
 
static float lookAt (sf::Vector2f objPos, sf::Vector2f targetPos)
 
static float radToDeg (float rad)
 
static float degToRad (float deg)
 
static sf::Vector2f directionVec (sf::Vector2f point1, sf::Vector2f point2)
 
static sf::Vector2f normalize (const sf::Vector2f source)
 
static b2Vec2 normalize (const b2Vec2 source)
 
static float distance (sf::Vector2f point1, sf::Vector2f point2)
 
static float distance (b2Vec2 point1, b2Vec2 point2)
 
static b2Vec2 fromSf (sf::Vector2f in)
 
static sf::Vector2f fromB2 (b2Vec2 in)
 

Static Public Attributes

static std::random_device rd
 
static std::mt19937 gen = std::mt19937(Utility::rd())
 
static std::uniform_int_distribution dis = std::uniform_int_distribution<>(0, 15)
 
static std::uniform_int_distribution dis2 = std::uniform_int_distribution<>(8, 11)
 

Detailed Description

Utility class for holding helper functions


The documentation for this class was generated from the following file: