Interface ISegment
Interface for segment geometry.
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Geometry
Syntax
public interface ISegment : IEdge
Methods
GetTriangle(Int32)
Gets an adjoining triangle.
Declaration
ITriangle GetTriangle(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The triangle index (0 or 1). |
Returns
| Type | Description |
|---|---|
| ITriangle |
GetVertex(Int32)
Gets the vertex at given index.
Declaration
Vertex GetVertex(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The local index (0 or 1). |
Returns
| Type | Description |
|---|---|
| Vertex |