Consider implementation of point on two dimensional plane
Consider the implementation of a triangle on a 2-D plane
\begin{itemize}
\itemPosition P is represented by pair of real numbers (x,y)
\itemA point is represented by pair of real numbers (x,y)
\item A triangle is represented by three points
\itemConsidering we have three points in a 2D surface and we want to know the possibility of having a triangle with the three points and then calculate the perimeter and the area of the triangle.
\itemThe triangle should be able to determine that it is a valid triangle, calculate its perimeter and calculate its area.