public LineEquation(SlopeInterceptEquation slopeInterceptEquation) { SlopeInterceptEquation = slopeInterceptEquation; X = null; }
public double CalculateYValue(double x) => SlopeInterceptEquation?.CalculateY(x) ?? X !.Value;