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

    Struct Osub

    An oriented subsegment.

    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 Osub
    Remarks

    Includes a pointer to a subsegment and an orientation. The orientation denotes a side of the edge. Hence, there are two possible orientations. By convention, the edge is always directed so that the "side" denoted is the right side of the edge.

    Properties

    Segment

    Declaration
    public SubSegment Segment { get; }
    Property Value
    Type Description
    SubSegment

    Methods

    Dest()

    Get the destination of a subsegment

    Declaration
    public Vertex Dest()
    Returns
    Type Description
    Vertex

    Next()

    Find next subsegment in sequence. [next(ab) -> b*]

    Declaration
    public void Next()

    Next(ref Osub)

    Find next subsegment in sequence. [next(ab) -> b*]

    Declaration
    public void Next(ref Osub ot)
    Parameters
    Type Name Description
    Osub ot

    Org()

    Get the origin of a subsegment

    Declaration
    public Vertex Org()
    Returns
    Type Description
    Vertex

    Pivot(ref Osub)

    Find adjoining subsegment with the same origin. [pivot(ab) -> a*]

    Declaration
    public void Pivot(ref Osub os)
    Parameters
    Type Name Description
    Osub os
    Remarks

    spivot() finds the other subsegment (from the same segment) that shares the same origin.

    Sym()

    Reverse the orientation of a subsegment. [sym(ab) -> ba]

    Declaration
    public void Sym()

    Sym(ref Osub)

    Reverse the orientation of a subsegment. [sym(ab) -> ba]

    Declaration
    public void Sym(ref Osub os)
    Parameters
    Type Name Description
    Osub os

    ToString()

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