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

    Class SubSegment

    The subsegment data structure.

    Inheritance
    System.Object
    SubSegment
    Inherited Members
    System.Object.Equals(System.Object)
    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
    Syntax
    public class SubSegment : ISegment, IEdge

    Constructors

    SubSegment()

    Declaration
    public SubSegment()

    Properties

    Label

    Gets the segment boundary mark.

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

    P0

    Gets the first endpoints vertex id.

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

    P1

    Gets the seconds endpoints vertex id.

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

    Methods

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    GetTriangle(Int32)

    Gets an adjoining triangle.

    Declaration
    public ITriangle GetTriangle(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    ITriangle
    Implements
    ISegment.GetTriangle(Int32)

    GetVertex(Int32)

    Gets the segments endpoint.

    Declaration
    public Vertex GetVertex(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    Vertex
    Implements
    ISegment.GetVertex(Int32)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    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