X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fpublic-api%2Fmath%2Fquaternion.cpp;h=853cb09aaa3019b5c4b40ae04f9cf8384401ef84;hp=93db036553edbc7f9b3fe93127a1a43cd327435b;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hpb=b41db98148be41ef5928f4335e985bf62252dde7 diff --git a/dali/public-api/math/quaternion.cpp b/dali/public-api/math/quaternion.cpp index 93db036..853cb09 100644 --- a/dali/public-api/math/quaternion.cpp +++ b/dali/public-api/math/quaternion.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -470,7 +470,7 @@ float Quaternion::AngleBetween( const Quaternion& q1, const Quaternion& q2 ) //Formula for angle θ between two quaternion is: //θ = cos^−1 (2⟨q1,q2⟩^2 − 1), Where (q1,q2) is inner product of the quaternions. float X = from.mVector.Dot4(to.mVector); - float theta = acos( (2 * X * X) - 1); + float theta = acosf( (2 * X * X) - 1); // float arc cosine return theta; }