Example #1
0
        long SquareDistance(HeatMapPoint p0, HeatMapPoint p1)
        {
            long x = p0.X - p1.X,
                 y = p0.Y - p1.Y;

            return(x * x + y * y);
        }
Example #2
0
 int CrossProduct(HeatMapPoint o, HeatMapPoint a, HeatMapPoint b)
 {
     return((a.X - o.X) * (b.Y - o.Y) - (a.Y - o.Y) * (b.X - o.X));
 }
Example #3
0
 protected bool Equals(HeatMapPoint other)
 {
     return(X == other.X && Y == other.Y);
 }