getXXX have two way:
1.function return

2.function parameters


Perhaps you are right.and ,we will dellete this function.


________________________________
发件人: boyu0 <notifications@github.com>
发送时间: 2013年12月23日 16:23
收件人: cocos2d/cocos2d-x
抄送: 侯国华
主题: Re: [cocos2d-x] math lib,transform (#4576)


In cocos/base/C3DTransform.cpp:

> +        }
> +
> +        _matrixDirtyBits = 0;
> +    }
> +
> +    return _matrix;
> +}
> +
> +const C3DVector3& C3DTransform::getScale() const
> +{
> +    return _scale;
> +}
> +
> +void C3DTransform::getScale(C3DVector3* scale) const
> +{
> +    scale->set(_scale);


I think if you want remain this function, scale = _scale is ok for me, I think this is what getXXX mean. And I think C3DVector3& C3DTransform::getScale() is better. what's your opinion?

—
Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/4576/files#r8523521>.