Struct Otri | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Otri

    An oriented triangle.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.Topology
    Syntax
    public struct Otri
    Remarks

    Includes a pointer to a triangle and orientation. The orientation denotes an edge of the triangle. Hence, there are three possible orientations. By convention, each edge always points counterclockwise about the corresponding triangle.

    Properties

    Triangle

    Declaration
    public Triangle Triangle { get; set; }
    Property Value
    Type Description
    Triangle

    Methods

    Apex()

    Apex [apex(abc) -> c]

    Declaration
    public Vertex Apex()
    Returns
    Type Description
    Vertex

    Copy(ref Otri)

    Copy an oriented triangle.

    Declaration
    public void Copy(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Dest()

    Destination [dest(abc) -> b]

    Declaration
    public Vertex Dest()
    Returns
    Type Description
    Vertex

    Dnext()

    Find the next edge counterclockwise with the same destination. [dnext(abc) -> *ba]

    Declaration
    public void Dnext()

    Dnext(ref Otri)

    Find the next edge counterclockwise with the same destination. [dnext(abc) -> *ba]

    Declaration
    public void Dnext(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Dprev()

    Find the next edge clockwise with the same destination. [dprev(abc) -> cb*]

    Declaration
    public void Dprev()

    Dprev(ref Otri)

    Find the next edge clockwise with the same destination. [dprev(abc) -> cb*]

    Declaration
    public void Dprev(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Equals(Otri)

    Test for equality of oriented triangles.

    Declaration
    public bool Equals(Otri ot)
    Parameters
    Type Name Description
    Otri ot
    Returns
    Type Description
    System.Boolean

    Lnext()

    Find the next edge (counterclockwise) of a triangle. [lnext(abc) -> bca]

    Declaration
    public void Lnext()

    Lnext(ref Otri)

    Find the next edge (counterclockwise) of a triangle. [lnext(abc) -> bca]

    Declaration
    public void Lnext(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Lprev()

    Find the previous edge (clockwise) of a triangle. [lprev(abc) -> cab]

    Declaration
    public void Lprev()

    Lprev(ref Otri)

    Find the previous edge (clockwise) of a triangle. [lprev(abc) -> cab]

    Declaration
    public void Lprev(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Onext()

    Find the next edge counterclockwise with the same origin. [onext(abc) -> ac*]

    Declaration
    public void Onext()

    Onext(ref Otri)

    Find the next edge counterclockwise with the same origin. [onext(abc) -> ac*]

    Declaration
    public void Onext(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Oprev()

    Find the next edge clockwise with the same origin. [oprev(abc) -> a*b]

    Declaration
    public void Oprev()

    Oprev(ref Otri)

    Find the next edge clockwise with the same origin. [oprev(abc) -> a*b]

    Declaration
    public void Oprev(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Org()

    Origin [org(abc) -> a]

    Declaration
    public Vertex Org()
    Returns
    Type Description
    Vertex

    Rnext()

    Find the next edge (counterclockwise) of the adjacent triangle. [rnext(abc) -> a]

    Declaration
    public void Rnext()

    Rnext(ref Otri)

    Find the next edge (counterclockwise) of the adjacent triangle. [rnext(abc) -> a]

    Declaration
    public void Rnext(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Rprev()

    Find the previous edge (clockwise) of the adjacent triangle. [rprev(abc) -> b**]

    Declaration
    public void Rprev()

    Rprev(ref Otri)

    Find the previous edge (clockwise) of the adjacent triangle. [rprev(abc) -> b**]

    Declaration
    public void Rprev(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    Sym()

    Find the abutting triangle; same edge. [sym(abc) -> ba*]

    Declaration
    public void Sym()

    Sym(ref Otri)

    Declaration
    public void Sym(ref Otri ot)
    Parameters
    Type Name Description
    Otri ot

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    In This Article
    • Properties
      • Triangle
    • Methods
      • Apex()
      • Copy(ref Otri)
      • Dest()
      • Dnext()
      • Dnext(ref Otri)
      • Dprev()
      • Dprev(ref Otri)
      • Equals(Otri)
      • Lnext()
      • Lnext(ref Otri)
      • Lprev()
      • Lprev(ref Otri)
      • Onext()
      • Onext(ref Otri)
      • Oprev()
      • Oprev(ref Otri)
      • Org()
      • Rnext()
      • Rnext(ref Otri)
      • Rprev()
      • Rprev(ref Otri)
      • Sym()
      • Sym(ref Otri)
      • 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