Today we did another example using classes.
This time we built on the professor's Point2D class (from lecture notes)
to create a Triangle class for storing 2D triangles.
The example code is here.
A couple of specific points:
It's perfectly fine for the new Triangle class to have member variables of type Point2D.
Notice we can call non-class functions from class member functions.
For example, in triangle.cpp we called the non-class function "distance"
from inside the class member function "area".