| lab_inheritance
    Insidious Inheritance | 
A subclass of Drawable that represents a line in 2D space. More...
#include <line.h>
| Public Member Functions | |
| Line (const Vector2 &a, const Vector2 &b, const cs225::HSLAPixel &color) | |
| Constructs a new Line going from Point a to Point b.  More... | |
| void | draw (cs225::PNG *canvas) const | 
| Draws the Line onto the canvas.  More... | |
| Vector2 | a () const | 
| Gets starting point of the Line.  More... | |
| void | set_a (const Vector2 &a) | 
| Sets the starting point of the Line.  More... | |
| Vector2 | b () const | 
| Gets the ending point of the Line.  More... | |
| void | set_b (const Vector2 &b) | 
| Sets the ending point of the Line.  More... | |
| cs225::HSLAPixel | color () const | 
| Gets the color of the Line.  More... | |
| void | set_color (const cs225::HSLAPixel &color) | 
| Sets the color of the Line.  More... | |
|  Public Member Functions inherited from Drawable | |
| ~Drawable () | |
| Static Public Member Functions | |
| static std::vector< double > | linearInterpolation (const Vector2 &a, const Vector2 &b) | 
| Private Attributes | |
| Vector2 | a_ | 
| Vector2 | b_ | 
| cs225::HSLAPixel | color_ | 
A subclass of Drawable that represents a line in 2D space.
| Line::Line | ( | const Vector2 & | a, | 
| const Vector2 & | b, | ||
| const cs225::HSLAPixel & | color | ||
| ) | 
| 
 | virtual | 
| void Line::set_a | ( | const Vector2 & | a | ) | 
| void Line::set_b | ( | const Vector2 & | b | ) | 
| void Line::set_color | ( | const cs225::HSLAPixel & | color | ) | 
| 
 | private | 
| 
 | private | 
| 
 | private |