using AIStudio.Wpf.DiagramDesigner.Geometrys; namespace AIStudio.Wpf.DiagramDesigner { public class PathGeneratorResult { public PathGeneratorResult(string[] paths, double sourceMarkerAngle, PointBase sourceMarkerPosition, double targetMarkerAngle, PointBase targetMarkerPosition, PointBase[] route) { Paths = paths; SourceMarkerAngle = sourceMarkerAngle; SourceMarkerPosition = sourceMarkerPosition; TargetMarkerAngle = targetMarkerAngle; TargetMarkerPosition = targetMarkerPosition; Route = route; } public string[] Paths { get; } public double SourceMarkerAngle { get; } /// /// SourceMarker左上角的点 /// public PointBase SourceMarkerPosition { get; } public double TargetMarkerAngle { get; } /// /// TargetMarker左上角的点 /// public PointBase TargetMarkerPosition { get; } public PointBase[] Route { get; } public PointBase Last1 { get => Route[Route.Length - 1]; } public PointBase Last2 { get => Route[Route.Length - 2]; } } }