Aetheria/Assets/Plugins/MSAGL/Routing/Spline/ConeSpanner/ConeClosureEvent.cs

29 lines
813 B
C#
Raw Normal View History

using Microsoft.Msagl.Core.Geometry;
namespace Microsoft.Msagl.Routing.Spline.ConeSpanner {
/// <summary>
/// this event caused by the intersection of a ObstacleSideSegment and the other cone side of the same cone
/// when this event happens the cone has to be removed
/// </summary>
internal class ConeClosureEvent:SweepEvent {
Cone coneToClose;
internal Cone ConeToClose {
get { return coneToClose; }
}
Point site;
internal override Point Site {
get { return site; }
}
internal ConeClosureEvent(Point site, Cone cone) {
this.site = site;
this.coneToClose = cone;
}
public override string ToString() {
return "ConeClosureEvent " + site;
}
}
}