The following sections cover the constructor and functions of the TrianglePrinter class.
This constructor creates a new, reusable TrianglePrinter.
The following example shows that you do not need to create a new instance of the TrianglePrinter class for every triangle that you print.
This function prints a triangle on a TileGrid. The triangle is drawn using an array of three points, where lines are drawn between Point→Point, Point→Point, and Point→Point.
This function sets the character to display on the tiles when printing a triangle.