All pastes #926620 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-03 19:46 UTC
rendered paste body
        public string FindSupercluster(decimal x, decimal y)
        {
            decimal x_ = (Math.Round(x / 124)) * 124;
            decimal y_ = (Math.Round(y / 124)) * 124;
            string superclusterToFind = "(" + x_ + "," + y_ + ")";
            return superclusterToFind;
        }

        public string FindCluster(decimal x, decimal y)
        {
            decimal x_ = (Math.Round(x / 31)) * 31;
            decimal y_ = (Math.Round(y / 31)) * 31;
            string clusterToFind = "(" + x_ + "," + y_ + ")";
            return clusterToFind;
        }