void setP1(Vector new_p1)
Set first endpoint.
Vector m_p2
Second endpoint.
Definition: Line.h:16
Line(Vector init_p1, Vector init_p2)
Create line segment from p1 to p2.
std::string toString() const
Return attributes as string.
void setP2(Vector new_p2)
Set second endpoint.
Line()
Default line segment is at (0,0).
void draw() const
Draw pixel line.
Vector m_p1
First endpoint.
Definition: Line.h:15
Vector getP2() const
Get second endpoint.
Vector getP1() const
Get first endpoint.
An animation for a sprite.
Definition: Animation.h:15