Блог пользователя Logarithmic

Автор Logarithmic, история, 8 лет назад, По-английски

Given 3 points of triangle, one of them is origin, coordinates of the other 2 are positive integers. I want to find the leftmost point inside triangle(could be on the edges of triangle). x_i, y_i <= 10^9. Is there any algorithm to solve this problem?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I think the leftmost point (as in smallest x-value, not sure what your definition is) is always going to be one of the vertices. Since your other two vertices both have positive coordinates, the leftmost point is always the origin.