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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions