Added initializers

This commit is contained in:
Robert Osfield 2016-06-22 11:27:15 +01:00
parent 67cc776696
commit 471e556e91

View File

@ -21,12 +21,12 @@
namespace osgAnimation namespace osgAnimation
{ {
template <class T> template <class T>
class TemplateCubicBezier class TemplateCubicBezier
{ {
public: public:
TemplateCubicBezier() {}
TemplateCubicBezier() : _position(osg::default_value<T>()), _controlPointIn(osg::default_value<T>()), _controlPointOut(osg::default_value<T>()) {}
TemplateCubicBezier(const T& p, const T& i, const T& o) : _position(p), _controlPointIn(i), _controlPointOut(o) TemplateCubicBezier(const T& p, const T& i, const T& o) : _position(p), _controlPointIn(i), _controlPointOut(o)
{ {