Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
You are not logged in.
i posted a while ago finding points on a line as i need to calculate if a given (X,Y) is on a line that spans from (x1,y1) to (x2,y2) i have the following
The equation of the line joining the points
is given by
Now, after forming the equation of the line joining the two points,
substitute the values (x,y) and see if the equation is satisfied. If yes, the point lies on the straight line, if no, it doesn't.
Character is who you are when no one is looking.