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

    Class InputTriangle

    Simple triangle class for input.

    Inheritance
    System.Object
    InputTriangle
    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.IO
    Syntax
    public class InputTriangle : ITriangle

    Constructors

    InputTriangle(Int32, Int32, Int32)

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

    Properties

    Area

    Gets the triangle area constraint.

    Declaration
    public double Area { get; set; }
    Property Value
    Type Description
    System.Double
    Implements
    ITriangle.Area

    ID

    Gets the triangle id.

    Declaration
    public int ID { get; set; }
    Property Value
    Type Description
    System.Int32
    Implements
    ITriangle.ID

    Label

    Region ID the triangle belongs to.

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

    Methods

    GetNeighbor(Int32)

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

    GetNeighborID(Int32)

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

    GetSegment(Int32)

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

    GetVertex(Int32)

    Gets the specified corners vertex.

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

    GetVertexID(Int32)

    Declaration
    public int GetVertexID(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Int32
    Implements
    ITriangle.GetVertexID(Int32)
    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