33 lines
690 B
C#
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;
|
|
}
|
|
}
|
|
|