aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Math/Vector2.h
blob: ce96ac8d12a302fd0ccf298126ac8d3031c9c425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __JIN_VECTOR_H
#define __JIN_VECTOR_H

namespace jin
{
namespace math
{

    template<typename T>
    class Vector2
    {
    public:
        Vector2() : x(0), y(0) {};
        Vector2(T _x, T _y) :x(_x), y(_y) {};
        Vector2(const Vector2<T>& v)
        {
            x = v.x;
            y = v.y;
        }

        T x; 
        T y;

    };

} // math
} // jin

#endif