public List <int> GetAccumulatorIndex(PolarPointF pointF) { return(new List <int>() { (int)Math.Floor((pointF.Rho + _rhoOffset) / RhoDelta), (int)((pointF.Theta) / ThetaDelta) // auto math flor }); }
protected bool Equals(PolarPointF other) { return(Rho.Equals(other.Rho) && Theta.Equals(other.Theta)); }
public void AddVote(PolarPointF pointF) { var index = GetAccumulatorIndex(pointF); Interlocked.Increment(ref _accumulator[index[0], index[1]]); }