28 references to DesignerGeometryHelper
System.Workflow.ComponentModel (28)
AuthoringOM\Design\Connector.cs (22)
109designerEdge = DesignerGeometryHelper.ClosestEdgeToPoint(Location, this.associatedDesigner.Bounds, designerEdge); 314Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(new List<Point>(ConnectorSegments).ToArray()); 336if (DesignerGeometryHelper.PointOnLineSegment(point, new Point[] { segments[i - 1], segments[i] }, selectionSize)) 1078Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(GetPointsFromEditPoints(this.editPoints).ToArray()); 1127float slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, this.activeEditPoint.Location); 1130int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4; 1144float slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.Location, next.Location); 1147int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4; 1191float slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, this.activeEditPoint.Location); 1196slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.Location, next.Location); 1212float slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, next.Location); 1264DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { this.editPoints[i].Location, this.editPoints[i + 1].Location }) > minLengthForSegmentEditPoint) 1266Point midPoint = DesignerGeometryHelper.MidPointOfLineSegment(this.editPoints[i].Location, this.editPoints[i + 1].Location); 1348double distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { previous.Location, current.Location }); 1351float slope = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 1358distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { current.Location, next.Location }); 1361float slope = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, current.Location); 1379float slope1 = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, current.Location); 1380float slope2 = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 1395float slope = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 1542float slope = DesignerGeometryHelper.SlopeOfLineSegment(sourcePoint, targetPoint); 1675escapeEdge = DesignerGeometryHelper.ClosestEdgeToPoint((Point)escapeLocation, bounds, DesignerEdges.All);
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
533double distanceToDesigner = DesignerGeometryHelper.DistanceFromPointToRectangle(currentPoint, snapPoint.Bounds);
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
351double distance = DesignerGeometryHelper.DistanceFromPointToRectangle(point, actionBounds);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (4)
195if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1) 197if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1) 199if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1)