//public EdgePoints() //{ // TopLeft = new Point(); // TopRight = new Point(); // BottomLeft = new Point(); // BottomRight = new Point(); // Bounds = Rectangle.Empty; //} public EdgePoints(EdgePoints edgePoints) { TopLeft = edgePoints.TopLeft; TopRight = edgePoints.TopRight; BottomLeft = edgePoints.BottomLeft; BottomRight = edgePoints.BottomRight; Bounds = edgePoints.Bounds; }
public EdgePoints ZoomIn(double scale) { var result = new EdgePoints(Bounds) { TopLeft = new Point(TopLeft.X / scale, TopLeft.Y / scale), TopRight = new Point(TopRight.X / scale, TopRight.Y / scale), BottomLeft = new Point(BottomLeft.X / scale, BottomLeft.Y / scale), BottomRight = new Point(BottomRight.X / scale, BottomRight.Y / scale) }; return(result); }