Given a sequence of three points, inserts a new point between the last two points.
public static UnityEngine.Vector3[] getBisectingVertices(
UnityEngine.Vector3 ,
UnityEngine.Vector3 ,
UnityEngine.Vector3 ,
float
)
Parameters
- previousPoint
- The Vector3 position of the first point in the sequence.
- point
- The Vector3 position of the point after which a new point should be inserted.
- nextPoint
- The Vector3 position of the point before which a new point should be inserted.
- adjustmentFactor
- The percentage of the distance between the point and previous point that the point should be moved back (towards the previous point), expressed as a float.
Return Value
An array of three
Vector3 positions, where the first position corresponds to
point (adjusted so as to make room) and the third corresponds to the
nextPoint.