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