Method Insert
Insert(Vector3[], Vector3)
Inserts a new anchor into an ordered anchor loop at the segment whose midpoint is closest to the new point.
public static Vector3[] Insert(Vector3[] srcAnchors, Vector3 newAnchor)
Parameters
srcAnchorsVector3[]Source anchor loop to copy and extend.
newAnchorVector3Anchor to insert.
Returns
- Vector3[]
A new anchor array containing
newAnchorat the computed insertion point.
Remarks
For loops with fewer than two anchors, the new anchor is appended because there is not yet a meaningful segment to split.