-#ifndef __DALI_INTERNAL_KEY_FRAME_CHANNEL_H__
-#define __DALI_INTERNAL_KEY_FRAME_CHANNEL_H__
+#ifndef DALI_INTERNAL_KEY_FRAME_CHANNEL_H
+#define DALI_INTERNAL_KEY_FRAME_CHANNEL_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* Use a linear search to find the interval containing progress
- * TODO: Use binary search instead
*/
template <class V>
bool KeyFrameChannel<V>::FindInterval(
{
float frameProgress = (progress - start->GetProgress()) / (end->GetProgress() - start->GetProgress());
- if( interpolation == Dali::Animation::Linear )
+ if( interpolation == Dali::Animation::LINEAR )
{
Interpolate(interpolatedV, start->GetValue(), end->GetValue(), frameProgress);
}
} // Internal
} // namespace Dali
-#endif // __DALI_INTERNAL_KEY_FRAME_CHANNEL_H__
+#endif // DALI_INTERNAL_KEY_FRAME_CHANNEL_H