- // Functors which wrap constraint functions with stored item IDs
- struct WrappedQuaternionConstraint
+// Lerps between initial and target using the progress
+template< typename Type >
+void Lerp( Type& current, const Type& initial, const Type& target, float progress )
+{
+ current = initial + ((target - initial) * progress);
+}
+
+// Functors which wrap constraint functions with stored item IDs
+struct WrappedQuaternionConstraint
+{
+ WrappedQuaternionConstraint( Dali::Toolkit::ItemLayout::QuaternionFunction wrapMe, unsigned int itemId )
+ :mWrapMe(wrapMe),
+ mItemId(itemId),
+ mInitialised( false )