..
This commit is contained in:
@@ -76,5 +76,17 @@ namespace AGVNavigationCore.Models
|
||||
get => new Point((int)P2.X, (int)P2.Y);
|
||||
set { P2.X = value.X; P2.Y = value.Y; }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (ControlPoint == null)
|
||||
{
|
||||
return $"[LINE] ({P1.X:F0},{P1.Y:F0}) -> ({P2.X:F0},{P2.Y:F0})";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"[CURVE] ({P1.X:F0},{P1.Y:F0}) -> ({P2.X:F0},{P2.Y:F0})";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user