Triangle Area By Shoelace
Computer Mathematics
Medium
3 views
Problem Description
Compute area of triangle from 3 points (2D).
Input Format
Six numbers x1 y1 x2 y2 x3 y3.
Output Format
Area with 1 decimal.
Official Solution
Area = abs(x1(y2-y3)+x2(y3-y1)+x3(y1-y2))/2.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!