Initial commit
This commit is contained in:
33
srcs/RobotNet10/Shared/RobotNet.VDA5050/Order/Trajectory.cs
Normal file
33
srcs/RobotNet10/Shared/RobotNet.VDA5050/Order/Trajectory.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.VDA5050.Order;
|
||||
|
||||
public class ControlPoint
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("x")]
|
||||
public double X { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("y")]
|
||||
public double Y { get; set; }
|
||||
|
||||
[JsonPropertyName("weight")]
|
||||
public double? Weight { get; set; }
|
||||
}
|
||||
|
||||
public class Trajectory
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("degree")]
|
||||
public int Degree { get; set; }
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("knotVector")]
|
||||
public double[] KnotVector { get; set; } = [];
|
||||
|
||||
[Required]
|
||||
[JsonPropertyName("controlPoints")]
|
||||
public ControlPoint[] ControlPoints { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user