Class Vertex
Inherited Members
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.DCEL
Syntax
public class Vertex : Point, IComparable<Point>, IEquatable<Point>
Constructors
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. |
System.Double | y | The y coordinate. |
Vertex(Double, Double, HalfEdge)
Initializes a new instance of the Vertex class.
Declaration
public Vertex(double x, double y, HalfEdge leaving)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x coordinate. |
System.Double | y | The y coordinate. |
HalfEdge | leaving | A half-edge leaving this vertex. |
Properties
Leaving
Gets or sets a half-edge leaving the vertex.
Declaration
public HalfEdge Leaving { get; set; }
Property Value
Type | Description |
---|---|
HalfEdge |
Methods
EnumerateEdges()
Enumerates all half-edges leaving this vertex.
Declaration
public IEnumerable<HalfEdge> EnumerateEdges()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<HalfEdge> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()