Esempio n. 1
0
 public double _DistanceSquare(_Point p)
 {
     return((xPoint - p.xPoint) * (xPoint - p.xPoint) + (yPoint - p.yPoint) * (yPoint - p.yPoint));
 }
Esempio n. 2
0
 public double _Distance(_Point p)
 {
     return(1 / (computeBase.invSqrt((float)((xPoint - p.xPoint) * (xPoint - p.xPoint) + (yPoint - p.yPoint) * (yPoint - p.yPoint)))));
 }