X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fprimitive-shapes%2Fprimitive-shapes-example.cpp;h=f19a3d4884eff2959740d7c6c3531bb96ee7cdc0;hb=5a56ed534cbc24150d68f03ea7fba7cfcc653835;hp=903300a92e87b820b66ccd21fb73edd4721287fe;hpb=e6806c116e1307bef6644e40b387d69b80100391;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/primitive-shapes/primitive-shapes-example.cpp b/examples/primitive-shapes/primitive-shapes-example.cpp index 903300a..f19a3d4 100644 --- a/examples/primitive-shapes/primitive-shapes-example.cpp +++ b/examples/primitive-shapes/primitive-shapes-example.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -639,12 +639,12 @@ public: { //Rotate based off the gesture. Vector2 displacement = gesture.GetDisplacement(); - Vector2 rotation { + Vector2 rotation{ -displacement.y / X_ROTATION_DISPLACEMENT_FACTOR, // Y displacement rotates around X axis - displacement.x / Y_ROTATION_DISPLACEMENT_FACTOR // X displacement rotates around Y axis + displacement.x / Y_ROTATION_DISPLACEMENT_FACTOR // X displacement rotates around Y axis }; - Quaternion q = Quaternion(Radian(rotation.x), Radian(rotation.y), Radian(0.f)); + Quaternion q = Quaternion(Radian(rotation.x), Radian(rotation.y), Radian(0.f)); Quaternion q0 = mModel.GetProperty(Actor::Property::ORIENTATION).Get(); mModel.SetProperty(Actor::Property::ORIENTATION, q * q0); @@ -698,7 +698,7 @@ private: PanGestureDetector mPanGestureDetector; ///< Detects pan gestures for rotation of the model. Animation mRotationAnimation; ///< Automatically rotates the model, unless it is being panned. - Vector4 mColor; ///< Color to set all shapes. + Vector4 mColor; ///< Color to set all shapes. }; int DALI_EXPORT_API main(int argc, char** argv)