// Example Project
// Author: Jake Lane
// Student ID: a1686679
// Description: Triangle class

#include "Triangle.h"

// Constructor for Triangle
Triangle::Triangle(int height, int width): Polygon(height, width) {}

// Destructor
Triangle::~Triangle() {}

// Returns the area of the triangle
float Triangle::area() {
return m_height * m_width / 2.000;
}