π“Ÿ host1.bitchan.one

𓀐 @gxQacNjL

⏱ 6d seenβ›“ 0πŸ‘ 0β§– 1

filter [-]

languages:onother

Just think about it for a bit and it will be easy. Your first is to determine which two points the target lies between on the x axis. Your next step is to determine the y value of the line at the x value of the target. This is a linear interpolation between the two points of the line under test. Just figure out what portion of the x distance the target is along the line and multiple the difference between the y values of the two line points by that amount and add it to the smaller of the two. Then, check if target y is at, above, or below that value. That's basically it. C'mon man, you could have done that.⏱ 6d↩