Пример #1
0
        private void updatePoint(DinamicPoint point, double dx, double dy, double interactRadius)
        {
            bool clusterCrossed = point.updateTriggers(dx, dy, interactRadius);

            if (clusterCrossed)
            {
                updatePoint(point);
            }
        }
Пример #2
0
        public void addDinamicPoint(Pnt point, double interactRadius, long id, int type, params KeyValuePair <Object, Object>[] linkedObjects)
        {
            DinamicPoint p = new DinamicPoint(point.x, point.y, interactRadius, id, type);

            foreach (KeyValuePair <Object, Object> pair in linkedObjects)
            {
                p.linkObject(pair.Key, pair.Value);
            }
            updatePoint(p);
            pointsContainer.Get <DinamicPoint>()[id] = p;
            pointsCount++;
        }
Пример #3
0
 private void updatePoint(DinamicPoint point)
 {
     Cluster[] clusters = getClusters(point);
     point.setClusters(clusters[0], clusters[1], clusters[2], clusters[3]);
 }
Пример #4
0
        public void updatePoint(Pnt point, double interactRadius, int id)
        {
            DinamicPoint dpoint = pointsContainer.Get <DinamicPoint>()[id];

            updatePoint(dpoint, point.x - dpoint.x, point.y - dpoint.y, interactRadius);
        }