11 explicit Shape(std::vector<std::string> shape);
21 char charAt(
int col,
int row)
const;
24 std::vector<std::string> shape_;
Represents an ASCII-art drawing and its corresponding bounding box.
Shape(std::vector< std::string > shape)
Take in an array of lines and right-pad the shorter ones with ' ' to the width of the longest line.
char charAt(int col, int row) const
Fetch the character at the given coordinate pair.