3460:210 Lecture Notes - Lecture 2: Triangle Center

114 views1 pages

Document Summary

This triangle will have: (1) three private point variables (2) a public function setpoints to set three private point variables. The function takes three point variables in arguments (3) a public function getarea to calculate triangle area and return the calculated area (4) a public function getcenterpoint to return the geometric center point of the triangle. You may add an additional constructor which takes 3 points as pass-in arguments. Where a, b and c are three corner points of a triangle. Note: the sequence of three points may affect the sign of the returned area. (clockwise direction) and a triangle with (anti-clockwise direction).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions