-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributors
Description
I'd like to put the functionality from these methods inside constructor overloads
private static CoordinateLine GetCoordinateLine(double x, double y, double slope)
{
Coordinates pt1 = new(x, y);
return GetCoordinateLine(pt1, slope);
}
private static CoordinateLine GetCoordinateLine(Coordinates point, double slope)
{
Coordinates pt2 = new(point.X + 1, point.Y + slope);
return new CoordinateLine(point, pt2);
}Overloads can be added to this file
ScottPlot/src/ScottPlot5/ScottPlot5/Primitives/CoordinateLine.cs
Lines 23 to 29 in fb3b1c8
| public CoordinateLine(double x1, double y1, double x2, double y2) | |
| { | |
| X1 = x1; | |
| Y1 = y1; | |
| X2 = x2; | |
| Y2 = y2; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributors