User Documentation
RAVL, Recognition And Vision Library
DEVELOP 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"
User Level:Normal
Library:RavlCore
In Scope:RavlN

This code does the following test 'Abs(a/norm)) < isSmall'.

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 10:00:21 2002