- Joined
- Jul 10, 2007
- Messages
- 6,306
JASS:
function IsPointOnLine takes real m, real b, real x, real y returns boolean
return y == m*x+b
endfunction
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function IsPointOnLine takes real m, real b, real x, real y returns boolean
return y == m*x+b
endfunction
how can anyone understand it if you don't explain what m, b, x and y are?
function IsPointOnLine takes real x, real y, real x1, real y1, real x2, real y2
how about making it accept a radius? like if point xy is r away from line.
function GetSlope takes real x1, real y1, real x2, real y2 returns real
return (y2-y1)/(x2-x1)
endfunction
