ofInclusiveInterceptAndPoint

Returns a linear function constructed by (0.0, intercept) and (pointX, pointY) within a closed parameter range.

Parameters

intercept

linear function starting at (0.0, intercept)

pointX

linear function stopping at (pointX, pointY)

pointY

linear function stopping at (pointX, pointY)


fun ofInclusiveInterceptAndPoint(intercept: Option<Double>, pointX: Double, pointY: Option<Double>): LinearFunction

Returns a linear function by (0.0, intercept) and (pointX, pointY) within a closed parameter range. If the intercept or the pointY is not finite (e.g. NaN), the respective other value is used.

Parameters

intercept

linear function starting at (0.0, intercept)

pointX

linear function stopping at (pointX, pointY)

pointY

linear function stopping at (pointX, pointY)