I am not sure how to return a value for the brPoint and tlPoint of a triangle so I can compute the perimeter area and use a scalar to modify it. So far I have the program listed below but I am getting an error message the way I have it set up now (I can't change any variables or the order of the functions because of the instructions I am following). The errors occur in lines 129, 134, and 150. The error message is "error: request for member 'getLength' in '((const Triangle*)this)->Triangle::length', which is of non-class type 'const double' "
At line 129, height is a double, but you're trying to call a method, getLength(), on it as if it were a class.
Also, blPoint.getX() is a double, and if there were such a thing as height.getLength() it would also be a double,, so the result of (blPoint.getY() + height.getHeight()) would be a double.
But you've defined your function to return a Point.
Similar problems at line 134.
At line 150, height and length are doubles, but you're trying to call methods on them as if they were classes.
All I need to do is add length to the x coordinate of the point.
But you need to decide what you want the method to return. A single number representing the X-coordinate (for getBottomRight())? Or a complete Point object?
Then make sure the method actually returns the thing that you want it to.