예제 #1
0
 public List <int> GetAccumulatorIndex(PolarPointF pointF)
 {
     return(new List <int>()
     {
         (int)Math.Floor((pointF.Rho + _rhoOffset) / RhoDelta),
         (int)((pointF.Theta) / ThetaDelta) // auto math flor
     });
 }
예제 #2
0
 protected bool Equals(PolarPointF other)
 {
     return(Rho.Equals(other.Rho) && Theta.Equals(other.Theta));
 }
예제 #3
0
        public void AddVote(PolarPointF pointF)
        {
            var index = GetAccumulatorIndex(pointF);

            Interlocked.Increment(ref _accumulator[index[0], index[1]]);
        }