HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Classes | Namespaces | Macros | Functions | Variables
util.cpp File Reference

basic utility functions: maths, parsing expressions More...

#include "hyper.h"

Classes

struct  hr::hr_parse_exception
 
struct  hr::exp_parser
 
struct  hr::bignum
 

Namespaces

 hr
 

Macros

#define profile_frame()
 
#define profile_start(t)
 
#define profile_stop(t)
 
#define profile_info()
 

Functions

EX long double hr::sqr (long double x)
 
EX ld hr::round_nearest (ld x)
 
EX ld hr::round_nearest (ld x, ld multiple_of)
 
EX int hr::gcd (int i, int j)
 
int hr::gmod (int i, int j)
 
int hr::zgmod (int a, int b)
 
EX int hr::szgmod (int a, int b)
 
EX int hr::gdiv (int i, int j)
 
EX ld hr::frac (ld x)
 
EX ld hr::lerp (ld a0, ld a1, ld x)
 
EX ld hr::ilerp (ld a0, ld a1, ld x)
 
EX string hr::simplify (const string &s)
 
EX bool hr::appears (const string &haystack, const string &needle)
 
EX ld hr::parseld (const string &s)
 
EX string hr::parser_help ()
 
EX bignum hr::hrand (bignum b)
 
EX void hr::operator++ (bignum &b, int)
 
EX void hr::operator-- (bignum &b, int)
 
EX string hr::short_form (bignum b)
 
EX string hr::compress_string (string s)
 
EX string hr::decompress_string (string s)
 

Variables

EX purehookset hr::hooks_tests
 

Detailed Description

basic utility functions: maths, parsing expressions