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
{
template <class T>
class TemplateCubicBezier
{
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)
{