Class InputTriangle
Simple triangle class for input.
Inheritance
System.Object
InputTriangle
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.IO
Syntax
public class InputTriangle : ITriangle
Constructors
InputTriangle(Int32, Int32, Int32)
Declaration
public InputTriangle(int p0, int p1, int p2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | p0 | |
| System.Int32 | p1 | |
| System.Int32 | p2 |
Properties
Area
Gets the triangle area constraint.
Declaration
public double Area { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Implements
ID
Gets the triangle id.
Declaration
public int ID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Implements
Label
Region ID the triangle belongs to.
Declaration
public int Label { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Implements
Methods
GetNeighbor(Int32)
Declaration
public ITriangle GetNeighbor(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| ITriangle |
Implements
GetNeighborID(Int32)
Declaration
public int GetNeighborID(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Implements
GetSegment(Int32)
Declaration
public ISegment GetSegment(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| ISegment |
Implements
GetVertex(Int32)
Gets the specified corners vertex.
Declaration
public Vertex GetVertex(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| Vertex |
Implements
GetVertexID(Int32)
Declaration
public int GetVertexID(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| System.Int32 |