Ejemplo n.º 1
0
        public override string ToString()
        {
            string result = Points.Aggregate("{", (current, point) => current + (point + " "));

            result += "C: " + Center;
            result += "}";
            return(result);
        }
Ejemplo n.º 2
0
 private void UpdateArrange()
 {
     if (arrangeInvalidated)
     {
         arrangeInvalidated = false;
         _PointBounds       = Points.Aggregate(Rect.Empty, Rect.Union);
         OnBoundsChanged();
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            var partsHashCode    = Parts.Aggregate(0, (current, part) => current ^ part.GetHashCode());
            var pointsHashCode   = Points.Aggregate(0, (current, point) => current ^ point.GetHashCode());
            var measuresHashCode = Measures.Aggregate(0, (current, measure) => current ^ measure.GetHashCode());

            return(BoundingBox.GetHashCode() ^ NumberOfParts.GetHashCode() ^ NumberOfPoints.GetHashCode()
                   ^ partsHashCode ^ pointsHashCode ^ MeasureRange.GetHashCode() ^ measuresHashCode);
        }
Ejemplo n.º 4
0
 public override string ToString()
 {
     return(Points.Aggregate("", (acc, p) => acc + p + " "));
 }