Class Edge
Represents a straight line segment in 2D space.
Inheritance
System.Object
Edge
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Geometry
Syntax
public class Edge : IEdge
Constructors
Edge(Int32, Int32)
Initializes a new instance of the Edge class.
Declaration
public Edge(int p0, int p1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | p0 | |
System.Int32 | p1 |
Edge(Int32, Int32, Int32)
Initializes a new instance of the Edge class.
Declaration
public Edge(int p0, int p1, int label)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | p0 | |
System.Int32 | p1 | |
System.Int32 | label |
Properties
Label
Gets the segments boundary mark.
Declaration
public int Label { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
P0
Gets the first endpoints index.
Declaration
public int P0 { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
P1
Gets the second endpoints index.
Declaration
public int P1 { get; }
Property Value
Type | Description |
---|---|
System.Int32 |