Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Getting a list of locations within a triangle in the form of x,y positions
  2. A * x + B * y + C = 0
  3. A = y2 - y1
  4. B = x1 - x2
  5. C = x2 * y1 - x1 * y2
  6.        
  7. a + b + c = 1
  8. a x1 + b x2 + c x3 = x
  9. a y2 + b y2 + c y3 = y