1 #ifndef __DALI_ANGLE_AXIS_H__
2 #define __DALI_ANGLE_AXIS_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 * @addtogroup CAPI_DALI_MATH_MODULE
27 #include <dali/public-api/math/degree.h>
28 #include <dali/public-api/math/vector3.h>
30 namespace Dali DALI_IMPORT_API
36 * @brief An angle & axis pair.
38 * This is slightly easier to understand than quaternions for handling rotations
39 * of objects. Both elements should be non-zero to correctly describe a rotation.
41 struct DALI_IMPORT_API AngleAxis
44 * @brief Create an angle-axis pair.
50 * @brief Create an angle-axis pair.
52 * @param[in] initialAngle The initial angle in degrees.
53 * @param[in] initialAxis The initial axis.
55 AngleAxis( Degree initialAngle, Vector3 initialAxis );
58 * @brief Create an angle-axis pair.
60 * @param[in] initialAngle The initial angle in radians.
61 * @param[in] initialAxis The initial axis.
63 AngleAxis( Radian initialAngle, Vector3 initialAxis );
65 Degree angle; ///< The angle in degrees
66 Vector3 axis; ///< The axis
74 #endif // __DALI_ANGLE_AXIS_H__