(p, q, r)
| 2078 | |
| 2079 | // signed area of a triangle |
| 2080 | function area(p, q, r) { |
| 2081 | return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); |
| 2082 | } |
| 2083 | |
| 2084 | // check if two points are equal |
| 2085 | function equals(p1, p2) { |
no outgoing calls
no test coverage detected