Developer Documentation |
RAVL, Recognition And Vision Library |
USER | HOME PAGE | CLASS LIST | CONTENTS |
Ravl - Core - Math - bool IsSmall(RealT a,RealT norm = 1,RealT isSmall = 1 e - 8) |
bool IsSmall(RealT a,RealT norm = 1,RealT isSmall = 1 e - 8) | |
Is a small relative to 'norm' ? | |
include | "Ravl/Math.hh" |
Source file: | Ravl/Core/Base/Math.hh |
User Level: | Normal |
Library: | RavlCore |
In Scope: | RavlN |
This code used to be as follows, but it was changed because
using x==y for floats is a bad idea, and eventually caused
trouble on Visual C++. (AJS)
float b = (float) ((double) Abs(a) + norm);
return (b == (float) norm);
Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:57 2002 |