Ejemplo n.º 1
0
        /// <summary>
        /// scales the edge by a certain amount from its center
        /// </summary>
        public void ScaleEdge(float scaleFactor)
        {
            var center = Center;
            var p1     = center + (scaleFactor) * (Origin - center);
            var p2     = center + (scaleFactor) * (Destination - center);

            Origin.ChangePosition(p1);
            Destination.ChangePosition(p2);

            Update();
        }