Evaluate the line equation P(t) = p + t * v at the supplied t, and return the x value of the resulting point.
| 1617 | // Evaluate the line equation P(t) = p + t * v at the supplied t, and return |
| 1618 | // the x value of the resulting point. |
| 1619 | inline int evaluateLineXOnly(const vtkVector2i& p, const vtkVector2i& v, float t) |
| 1620 | { |
| 1621 | return p.GetX() + static_cast<int>(std::round(v.GetX() * t)); |
| 1622 | } |
| 1623 | |
| 1624 | // Given the corners of a rectangle (TL, TR, BL, BR), the vectors that |
| 1625 | // separate them (dx = TR - TL = BR - BL, dy = TR - BR = TL - BL), and the |
no test coverage detected