The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
594 B
16 lines
594 B
1 year ago
|
#pragma once
|
||
|
#include <stdlib.h>
|
||
1 year ago
|
#include "olcUTIL_Geometry2D.h"
|
||
1 year ago
|
namespace util{
|
||
|
//Returns 0-range (as a float).
|
||
|
float random(float range);
|
||
1 year ago
|
//Returns a normalized vector pointing from posFrom towards posTo.
|
||
|
vf2d pointTo(vf2d posFrom,vf2d posTo);
|
||
1 year ago
|
//Returns the angle (in radians) pointing from posFrom towards posTo.
|
||
|
float angleTo(vf2d posFrom,vf2d posTo);
|
||
1 year ago
|
float degToRad(float deg);
|
||
|
float radToDeg(float rad);
|
||
1 year ago
|
float lerp(float n1,float n2,double t);
|
||
1 year ago
|
std::string timerStr(float time);
|
||
1 year ago
|
std::string WrapText(PixelGameEngine*pge,std::string str,int width,bool proportional,vd2d scale);
|
||
1 year ago
|
}
|