// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace UnityEngine.U2D.Animation.TriangleNet .Geometry { /// /// Represents a straight line segment in 2D space. /// internal class Edge : IEdge { /// /// Gets the first endpoints index. /// public int P0 { get; private set; } /// /// Gets the second endpoints index. /// public int P1 { get; private set; } /// /// Gets the segments boundary mark. /// public int Label { get; private set; } /// /// Initializes a new instance of the class. /// public Edge(int p0, int p1) : this(p0, p1, 0) {} /// /// Initializes a new instance of the class. /// public Edge(int p0, int p1, int label) { this.P0 = p0; this.P1 = p1; this.Label = label; } } }