Class Vertex | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Vertex

    The vertex data structure.

    Inheritance
    System.Object
    Point
    Vertex
    Inherited Members
    Point.ID
    Point.X
    Point.Y
    Point.Label
    Point.Equals(Object)
    Point.Equals(Point)
    Point.CompareTo(Point)
    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
    Overrides
    Point.GetHashCode()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023