Sirikata
Namespaces | Defines | Typedefs | Enumerations | Functions | Variables
space/src/caches/Utility.hpp File Reference
#include <sirikata/core/util/Platform.hpp>
#include <iostream>
#include <iomanip>
#include <string>
#include <stdint.h>
Include dependency graph for Utility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


Defines

#define PI   3.14159
#define DEGREES_TO_RADIANS   PI/180.0
#define PTR_AS_INT(X)   ((uintptr_t)X)

Typedefs

typedef int64 Sirikata::ObjID
typedef int Sirikata::BlockID
typedef int64 Sirikata::CacheTimeMS

Enumerations

enum  Sirikata::ObjType {
  Sirikata::NullObjType, Sirikata::OBJ_TYPE_STATIC, Sirikata::OBJ_TYPE_MOBILE_RANDOM, Sirikata::OBJ_TYPE_QUAKE_TRACE,
  Sirikata::OBJ_TYPE_SL_TRACE
}

Functions

TimeMS Sirikata::convertTimeToAge (const struct timeval &tv)
double Sirikata::getUniform (double min, double max)
double Sirikata::getUniform ()
double Sirikata::b_abval (double a)
double Sirikata::mdifftime (const struct timeval &newest, const struct timeval &oldest)
double Sirikata::normalGaussianPDF (double val)
double Sirikata::mavg (double a, double b)
float Sirikata::mavg (float a, float b)
double Sirikata::findScalingAutoRange (double target, double meterRange, double(*fallOffFunction)(double radius, double scaling))
float Sirikata::findScalingAutoRange (float target, float meterRange, float(*fallOffFunction)(float radius, float scaling))
double Sirikata::findScaling (double target, double low, double high, double meterRange, double(*fallOffFunction)(double radius, double scaling))
float Sirikata::findScaling (float target, float low, float high, float meterRange, float(*fallOffFunction)(float radius, float scaling))

Variables

const int Sirikata::TIMEVAL_SECOND_TO_US = 1000000

Define Documentation

#define DEGREES_TO_RADIANS   PI/180.0
#define PI   3.14159
#define PTR_AS_INT (   X)    ((uintptr_t)X)