Bazaar developer reference

CvRandom::getFloat()

Defined in
CvRandom.cpp, line 186
Class
CvRandom
Hook name
CivHooks::CvRandom_getFloat

Hooks

static bool BeforeCvRandom_getFloat(CvRandom* self, float& result);static void AfterCvRandom_getFloat(CvRandom* self, float& result);static float ReplaceCvRandom_getFloat(float (*original)(CvRandom*), CvRandom* self);CivRegisterBefore<CivHooks::CvRandom_getFloat>(host, &BeforeCvRandom_getFloat);CivRegisterAfter<CivHooks::CvRandom_getFloat>(host, &AfterCvRandom_getFloat);CivRegisterReplace<CivHooks::CvRandom_getFloat>(host, &ReplaceCvRandom_getFloat);

Code

186float CvRandom::getFloat()187{188	return (((float)(get(MAX_UNSIGNED_SHORT))) / ((float)MAX_UNSIGNED_SHORT));189}

Calls

Called by