2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiEffects_RendererMathVector2Traits.h
20 * @brief The Vector2Traits class
24 #ifndef _FUI_EFFECTS_INTERNAL_RENDERER_MATH_VECTOR2_TRAITS_H_
25 #define _FUI_EFFECTS_INTERNAL_RENDERER_MATH_VECTOR2_TRAITS_H_
27 #include <renderer/math/FUiEffects_RendererMathVectorTraits.h>
29 namespace Tizen { namespace Ui { namespace Effects { namespace _Renderer { namespace Math
33 class VectorTraits<T, 2> :
34 public VectorTraitsBase<T, 2>
37 typedef Vector<T, 2> VectorType;
38 typedef VectorTraitsBase<T, 2> VectorTraitsBaseType;
39 typedef typename VectorTraitsBaseType::TypeReference TypeReference;
41 using VectorTraitsBaseType::data;
44 inline const TypeReference X(void) const;
47 inline const TypeReference Y(void) const;
49 inline VectorType& Set(const TypeReference x, const TypeReference y);
53 T& VectorTraits<T, 2>::X(void)
59 const typename VectorTraits<T, 2>::TypeReference VectorTraits<T, 2>::X(void) const
65 T& VectorTraits<T, 2>::Y(void)
71 const typename VectorTraits<T, 2>::TypeReference VectorTraits<T, 2>::Y(void) const
77 typename VectorTraits<T, 2>::VectorType& VectorTraits<T, 2>::Set(const TypeReference x, const TypeReference y)
81 return *(static_cast<VectorType*>(this));
84 }}}}} //Tizen::Ui::Effects::_Renderer::Math
87 #endif //_FUI_EFFECTS_INTERNAL_RENDERER_MATH_VECTOR2_TRAITS_H_