add Contour.GetVertexCopies()

This commit is contained in:
Zdenek Borovec 2024-09-21 23:27:42 +02:00
parent 2e57f41125
commit 22cd0105b7

View file

@ -42,6 +42,15 @@ namespace Boprs
/// <returns><c>true</c> if the contour is clockwise, <c>false</c> if counter-clockwise.</returns> /// <returns><c>true</c> if the contour is clockwise, <c>false</c> if counter-clockwise.</returns>
public bool IsClockwise { get => SignedArea < 0; } public bool IsClockwise { get => SignedArea < 0; }
/// <summary>
/// Get a copy of the list of the vertices of this contour.
/// </summary>
/// <returns>List of vertices defining this region.</returns>
public List<Point2d> GetVertexCopies()
{
return new List<Point2d>(Vertices);
}
/// <summary> /// <summary>
/// Compute the signed area of the contour /// Compute the signed area of the contour
/// </summary> /// </summary>