Files
Dec2017-Script-Dump/Poly2Tri/DTSweepConstraint.cs
T
2026-06-04 11:42:34 +02:00

35 lines
580 B
C#

using System;
namespace Poly2Tri
{
// Token: 0x0200000B RID: 11
public class DTSweepConstraint : TriangulationConstraint
{
// Token: 0x0600007A RID: 122 RVA: 0x000043E0 File Offset: 0x000025E0
public DTSweepConstraint(TriangulationPoint p1, TriangulationPoint p2)
{
this.P = p1;
this.Q = p2;
if (p1.Y > p2.Y)
{
this.Q = p1;
this.P = p2;
}
else if (p1.Y == p2.Y)
{
if (p1.X > p2.X)
{
this.Q = p1;
this.P = p2;
}
else
{
double x = p1.X;
double x2 = p2.X;
}
}
this.Q.AddEdge(this);
}
}
}