#include "mfcpch.h"
#include "serialis.h"
#include "points.h"
Go to the source code of this file.
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 }