• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[snippet]IsPointOnLine

Is point on line, should allow you to define a line using coordinates, instead of leaving this ambiguous m and b.

JASS:
function IsPointOnLine takes real x, real y, real x1, real y1, real x2, real y2

Whereas x and y are the point in question, x1,y1 is start of the line and x2, y2 is the end of the line.

The way you have it set up is more like IsPointIntersectingAngle.
 
It's not abstract at all... >.>

I suppose it's only ever useful if someone doesn't know the equation of a line ^_-.

Furthermore, if you want a function to calculate slope, make one ; D

JASS:
function GetSlope takes real x1, real y1, real x2, real y2 returns real
    return (y2-y1)/(x2-x1)
endfunction

This is really simple math though, and very few wuold benefit from this ^_-, but there are those who are in HS and even graduate and still don't know this stuff, soo.. ;o
 
Top