Initial commit
This commit is contained in:
32
srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Polygon.cs
Normal file
32
srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Polygon.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user