Class Vertex
The vertex data structure.
Inherited Members
System.Object.ToString()
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.Geometry
Syntax
public class Vertex : Point, IComparable<Point>, IEquatable<Point>
Constructors
Vertex()
Initializes a new instance of the Vertex class.
Declaration
public Vertex()
Vertex(Double, Double)
Initializes a new instance of the Vertex class.
Declaration
public Vertex(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x coordinate of the vertex. |
System.Double | y | The y coordinate of the vertex. |
Vertex(Double, Double, Int32)
Initializes a new instance of the Vertex class.
Declaration
public Vertex(double x, double y, int mark)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x coordinate of the vertex. |
System.Double | y | The y coordinate of the vertex. |
System.Int32 | mark | The boundary mark. |
Properties
Item[Int32]
Gets the specified coordinate of the vertex.
Declaration
public double this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | Coordinate index. |
Property Value
Type | Description |
---|---|
System.Double | X coordinate, if index is 0, Y coordinate, if index is 1. |
Type
Gets the vertex type.
Declaration
public VertexType Type { get; }
Property Value
Type | Description |
---|---|
VertexType |
Methods
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |