Browse Source

return Vector2[] instead of IEnumerable<Vector2>

af/merge-core
Scott Williams 10 years ago
parent
commit
5467b96bc5
  1. 2
      src/ImageSharp/Drawing/Paths/BezierLineSegment.cs
  2. 2
      src/ImageSharp/Drawing/Paths/ILineSegment.cs
  3. 2
      src/ImageSharp/Drawing/Paths/LinearLineSegment.cs
  4. 2
      src/ImageSharp/Drawing/Paths/Path.cs
  5. 2
      src/ImageSharp/Drawing/Shapes/Polygon.cs

2
src/ImageSharp/Drawing/Paths/BezierLineSegment.cs

@ -68,7 +68,7 @@ namespace ImageSharp.Drawing.Paths
/// <returns>
/// Returns the current <see cref="ILineSegment" /> as simple linear path.
/// </returns>
public IEnumerable<Vector2> AsSimpleLinearPath()
public Vector2[] AsSimpleLinearPath()
{
return this.linePoints;
}

2
src/ImageSharp/Drawing/Paths/ILineSegment.cs

@ -20,6 +20,6 @@ namespace ImageSharp.Drawing.Paths
/// Converts the <see cref="ILineSegment" /> into a simple linear path..
/// </summary>
/// <returns>Returns the current <see cref="ILineSegment" /> as simple linear path.</returns>
IEnumerable<Vector2> AsSimpleLinearPath();
Vector2[] AsSimpleLinearPath(); // TODO move this over to ReadonlySpan<Vector2> once availible
}
}

2
src/ImageSharp/Drawing/Paths/LinearLineSegment.cs

@ -75,7 +75,7 @@ namespace ImageSharp.Drawing.Paths
/// <returns>
/// Returns the current <see cref="ILineSegment" /> as simple linear path.
/// </returns>
public IEnumerable<Vector2> AsSimpleLinearPath()
public Vector2[] AsSimpleLinearPath()
{
return this.points;
}

2
src/ImageSharp/Drawing/Paths/Path.cs

@ -60,7 +60,7 @@ namespace ImageSharp.Drawing.Paths
/// <returns>
/// Returns the current <see cref="ILineSegment" /> as simple linear path.
/// </returns>
public IEnumerable<Vector2> AsSimpleLinearPath()
public Vector2[] AsSimpleLinearPath()
{
return this.innerPath.Points;
}

2
src/ImageSharp/Drawing/Shapes/Polygon.cs

@ -126,7 +126,7 @@ namespace ImageSharp.Drawing.Shapes
/// <returns>
/// Returns the current <see cref="ILineSegment" /> as simple linear path.
/// </returns>
public IEnumerable<Vector2> AsSimpleLinearPath()
public Vector2[] AsSimpleLinearPath()
{
return this.innerPath.Points;
}

Loading…
Cancel
Save