Searched refs:maxSlope (Results 1 – 1 of 1) sorted by relevance
165 const S maxSlope = 3 * sec; in findY() local166 m0 = constrainSlope(m0, maxSlope); in findY()167 m1 = constrainSlope(m1, maxSlope); in findY()316 static S constrainSlope(S slope, S maxSlope) { in constrainSlope() argument317 if (maxSlope > 0) { in constrainSlope()318 slope = std::min(slope, maxSlope); in constrainSlope()321 slope = std::max(slope, maxSlope); in constrainSlope()