Class SubSegment
The subsegment data structure.
Inheritance
System.Object
SubSegment
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Topology
Syntax
public class SubSegment : ISegment, IEdge
Constructors
SubSegment()
Declaration
public SubSegment()
Properties
Label
Gets the segment boundary mark.
Declaration
public int Label { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
P0
Gets the first endpoints vertex id.
Declaration
public int P0 { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
P1
Gets the seconds endpoints vertex id.
Declaration
public int P1 { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
Methods
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
GetTriangle(Int32)
Gets an adjoining triangle.
Declaration
public ITriangle GetTriangle(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
ITriangle |
Implements
GetVertex(Int32)
Gets the segments endpoint.
Declaration
public Vertex GetVertex(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
Vertex |
Implements
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()