change Vector2 param to a const Vector2&
[physics.git] / src / Entities / Line.cpp
1 #include "Line.h"
2 #include "../Vector2.h"
3
4 /// ***** Public Class Methods *****
5 Line::Line(const Vector2& org, const Vector2& dest, bool canDie)
6     : Particle(org, canDie), dest(dest)
7 {
8
9 }
10 Line::Line(const Vector2& org, const Vector2& dest, float life_time)
11     : Particle(org, life_time), dest(dest)
12 {
13
14 }
15 Line::~Line()
16 {
17
18 }
19
20 void Line::draw()
21 {
22     // TODO
23 }