4 * Created on: Aug 6, 2012
8 #ifndef GEOMETRY_VECTOR_H_
9 #define GEOMETRY_VECTOR_H_
13 template<class Scalar>
17 Vector() : x(0), y(0) { }
18 Vector(Scalar x, Scalar y) : x(x), y(y) { }
20 Vector(const Vector<T> &other) : x(other.X()), y(other.Y()) { };
22 Vector(T x, T y) : x(x), y(y) { }
25 Scalar X() const { return x; }
26 Scalar Y() const { return y; }
35 #endif /* GEOMETRY_VECTOR_H_ */