Files
BQP/srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Polygon.cs
2026-07-13 09:25:40 +07:00

33 lines
690 B
C#

using RobotNet10.Shared.Numbers;
namespace RobotNet10.Shared.Geometry;
/// <summary>
/// Polygon message (geometry_msgs/Polygon)
/// A specification of a polygon where the first and last points are assumed to be connected
/// </summary>
public struct Polygon
{
/// <summary>
/// Array of points defining the polygon
/// </summary>
public Vector3[] Points { get; set; }
/// <summary>
/// Default constructor
/// </summary>
public Polygon()
{
Points = [];
}
/// <summary>
/// Constructor with parameters
/// </summary>
public Polygon(Vector3[] points)
{
Points = points;
}
}