Aetheria/Assets/Plugins/MSAGL/Routing/ConstrainedDelaunayTriangulation/CdtFrontElement.cs
Reinier Vens dbc522a224 Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged
Added machine gun weapon & VFX
Moved third party code to Plugins folder to improve compile times
2021-01-31 03:52:32 +00:00

24 lines
No EOL
950 B
C#

using System.Diagnostics;
namespace Microsoft.Msagl.Routing.ConstrainedDelaunayTriangulation {
internal class CdtFrontElement {
//The LeftSite should coincide with the leftmost end of the Edge, and the edge should not be vertical
internal CdtSite LeftSite;
internal CdtEdge Edge;
internal CdtSite RightSite;
internal double X {
get { return LeftSite.Point.X; }
}
internal CdtFrontElement(CdtSite leftSite, CdtEdge edge) {
Debug.Assert(edge.upperSite.Point.X != edge.lowerSite.Point.X &&
edge.upperSite.Point.X < edge.lowerSite.Point.X && leftSite == edge.upperSite ||
edge.upperSite.Point.X > edge.lowerSite.Point.X && leftSite == edge.lowerSite);
RightSite = edge.upperSite == leftSite ? edge.lowerSite : edge.upperSite;
LeftSite = leftSite;
Edge = edge;
}
}
}