#ifndef PW_CORE_AXISANGLE_HPP
#define PW_CORE_AXISANGLE_HPP

#include <pw/core/vector.hpp>

namespace pw {

template <typename T>
class axisangle {
protected:
    vector3_<T> _axis;
    T _angle;
public:

	axisangle()
		: _axis(vector3_<T>::up()),
		  _angle(0)
	{}

    axisangle(const vector3_<T> &axis,const T &angle)
        : _axis(axis)
        , _angle(angle)
    {
    }

    vector3_<T> axis() const { return _axis; }
    void set_axis(const vector3_<T> &axis) { _axis = axis; }

    T angle() const { return _angle; }
    void set_angle(const T &angle) { _angle = angle; }

};

typedef axisangle<double> axisangled;

}





#endif
