コード例 #1
0
 public static Vector2[] OffsetVerts(Vector2[] aSegment, float scale) {
     Vector2[] result = (Vector2[])aSegment.Clone();
     int length  = aSegment.Length;
     for (int i = length - 1; i >= 0; i--) {
         result[i] += GetNormal(aSegment, i, false) * scale;
     }
     return result;
 }