3460:210 Lecture Notes - Lecture 2: Triangle Center
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).