ContourSide
public readonly struct ContourSideOne directed edge as observed at a vertex. The incoming interval ends at that vertex; the outgoing interval starts there. SourceInterval parameters are attributable estimates, not a claim of an exact analytic Boolean intersection.
Constructors
Section titled “Constructors”
ContourSide(Vector2, int, float, float, ContourProvenanceKind, ContourTangentKind)
Section titled “ContourSide(Vector2, int, float, float, ContourProvenanceKind, ContourTangentKind)”public ContourSide(Vector2 tangent, int sourceSegmentIndex, float parameterStart, float parameterEnd, ContourProvenanceKind provenance, ContourTangentKind tangentKind)Creates a directed contour side with a normalized tangent and optional source curve attribution.
Parameters
| Name | Type |
|---|---|
tangent |
UnityEngine.Vector2 |
sourceSegmentIndex |
System.Int32 |
parameterStart |
System.Single |
parameterEnd |
System.Single |
provenance |
TextStudio.ThreeD.ContourProvenanceKind |
tangentKind |
TextStudio.ThreeD.ContourTangentKind |
Methods
Section titled “Methods”
Geometric(Vector2, bool)
Section titled “Geometric(Vector2, bool)”public static ContourSide Geometric(Vector2 directedEdge, bool ambiguous = false)Creates a side from a geometric edge when no exact source curve interval can be claimed.
Parameters
| Name | Type |
|---|---|
directedEdge |
UnityEngine.Vector2 |
ambiguous |
System.Boolean |
Returns
TextStudio.ThreeD.ContourSide
ReverseTraversal()
Section titled “ReverseTraversal()”public ContourSide ReverseTraversal()Returns the same edge attribution traversed in the opposite direction.
Returns
TextStudio.ThreeD.ContourSide
TransformLinear(float, float, float, float)
Section titled “TransformLinear(float, float, float, float)”public ContourSide TransformLinear(float xx, float xy, float yx, float yy)Applies a 2D linear transform to the tangent while retaining its source attribution.
Parameters
| Name | Type |
|---|---|
xx |
System.Single |
xy |
System.Single |
yx |
System.Single |
yy |
System.Single |
Returns
TextStudio.ThreeD.ContourSide
Properties
Section titled “Properties”
Tangent
Section titled “Tangent”public Vector2 Tangent { get; }Returns
UnityEngine.Vector2
SourceSegmentIndex
Section titled “SourceSegmentIndex”public int SourceSegmentIndex { get; }Returns
System.Int32
ParameterStart
Section titled “ParameterStart”public float ParameterStart { get; }Returns
System.Single
ParameterEnd
Section titled “ParameterEnd”public float ParameterEnd { get; }Returns
System.Single
Provenance
Section titled “Provenance”public ContourProvenanceKind Provenance { get; }Returns
TextStudio.ThreeD.ContourProvenanceKind
TangentKind
Section titled “TangentKind”public ContourTangentKind TangentKind { get; }Returns
TextStudio.ThreeD.ContourTangentKind
HasSource
Section titled “HasSource”public bool HasSource { get; }Returns
System.Boolean