Question: Please create a basic function in C++ to compute the area of a triangle using only the corner points. Given the corner points of a

 Please create a basic function in C++ to compute the area

Please create a basic function in C++ to compute the area of a triangle using only the corner points.

Given the corner points of a triangle (x1,y1),(x2,y2),(x3,y3), write a function to compute the area. Hint: The area of the triangle with corner points (0,0),(x1,y1), and (x2,y2) is 2x1y2x2y1 To use this formula, you shift the given triangle so that one of its corners falls on the origin. This shift does not change the area. The corner points of the triangle shifted by (x,y) are (x1x,y1y),(x2x,y2y),(x3x,y3y)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!