ccstruct/points.cpp File Reference

#include "mfcpch.h"
#include "serialis.h"
#include "points.h"

Go to the source code of this file.

Functions


Function Documentation

ELISTIZE_S ( ICOORDELT   ) 

Convert to unit vec

Definition at line 24 of file points.cpp.

00028                        {  //Convert to unit vec
00029   float len = length ();
00030 
00031   if (len < 0.0000000001) {
00032     return false;
00033   }
00034   xcoord /= len;
00035   ycoord /= len;
00036   return true;
00037 }


Generated on Wed Feb 28 19:49:16 2007 for Tesseract by  doxygen 1.5.1