Struct Otri
An oriented triangle.
Inherited Members
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 |