Subversion Repositories gelsvn

Rev

Rev 89 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __CGLA_VEC2F_H__
#define __CGLA_VEC2F_H__

#include "ArithVec2Float.h"
#include "Vec2i.h"


namespace CGLA {

        /** 2D floating point vector */

        class Vec2f: public ArithVec2Float<float,Vec2f>
        {
        public:

                Vec2f() {}
                Vec2f(float _a,float _b): ArithVec2Float<float,Vec2f>(_a,_b) {}

                template<class T, class V, int N>
                explicit Vec2f(const ArithVec<T,V,N>& v): 
                        ArithVec2Float<float,Vec2f>(static_cast<float>(v[0]),
                                                                                                                                        static_cast<float>(v[1])) {}

                explicit Vec2f(float a): ArithVec2Float<float,Vec2f>(a,a) {}
        };



}
#endif