SyntaxFix
Write A Post
Hire A Developer
Questions
@AVB's answer in ruby
det = Matrix[ [(x2 - x1), (x3 - x1)], [(y2 - y1), (y3 - y1)] ].determinant
If det is positive its above, if negative its below. If 0, its on the line.
det