Example #1
0
 public static ClipPointData Lerp(ClipPointData from, ClipPointData to, float lerpFactor) =>
 new ClipPointData
 {
     point2D    = Vector2.LerpUnclamped(from.point2D, to.point2D, lerpFactor),
     vertexData = VertexData.Lerp(from.vertexData, to.vertexData, lerpFactor)
 };
Example #2
0
 public ClipPointData(VertexData vertexData)
 {
     this.point2D    = vertexData.vertex;
     this.vertexData = vertexData;
     this.index      = -1;
 }