X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fmath%2Fmatrix.cpp;h=b1a33bde848372415e86cb1f5bb1e7182d758a39;hb=4105b158de133dfc54b4f664c7e12a73caa1e1b9;hp=18107c1ad0481607dcead41fc0944423ec618275;hpb=8de71324ecc174553fce43619f4e6bef82657a45;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/math/matrix.cpp b/dali/public-api/math/matrix.cpp index 18107c1..b1a33bd 100644 --- a/dali/public-api/math/matrix.cpp +++ b/dali/public-api/math/matrix.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -133,6 +133,20 @@ Matrix& Matrix::operator=( const Matrix& matrix ) return *this; } +Matrix::Matrix( Matrix&& matrix ) +{ + memcpy( mMatrix, matrix.mMatrix, NUM_BYTES_IN_MATRIX ); +} + +Matrix& Matrix::operator=( Matrix&& matrix ) +{ + if( this != &matrix ) + { + memcpy( mMatrix, matrix.mMatrix, NUM_BYTES_IN_MATRIX ); + } + return *this; +} + void Matrix::InvertTransform(Matrix& result) const { MATH_INCREASE_BY(PerformanceMonitor::FLOAT_POINT_MULTIPLY,12);