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

    Class Edge

    Represents a straight line segment in 2D space.

    Inheritance
    System.Object
    Edge
    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.Geometry
    Syntax
    public class Edge : IEdge

    Constructors

    Edge(Int32, Int32)

    Initializes a new instance of the Edge class.

    Declaration
    public Edge(int p0, int p1)
    Parameters
    Type Name Description
    System.Int32 p0
    System.Int32 p1

    Edge(Int32, Int32, Int32)

    Initializes a new instance of the Edge class.

    Declaration
    public Edge(int p0, int p1, int label)
    Parameters
    Type Name Description
    System.Int32 p0
    System.Int32 p1
    System.Int32 label

    Properties

    Label

    Gets the segments boundary mark.

    Declaration
    public int Label { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    IEdge.Label

    P0

    Gets the first endpoints index.

    Declaration
    public int P0 { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    IEdge.P0

    P1

    Gets the second endpoints index.

    Declaration
    public int P1 { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    IEdge.P1
    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