Table of Contents

Method Insert

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

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

srcAnchors Vector3[]

Source anchor loop to copy and extend.

newAnchor Vector3

Anchor to insert.

Returns

Vector3[]

A new anchor array containing newAnchor at 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.