Do you have a better way?
except that we delete this function?

________________________________
发件人: 侯国华
发送时间: 2013年12月23日 15:48
收件人: cocos2d/cocos2d-x; cocos2d/cocos2d-x
主题: 答复: [cocos2d-x] math lib,transform (#4576)

what wrong?
set the transform's _scale  value into the scale which is a function parameter.
Is it not possible?

________________________________
发件人: boyu0 <notifications@github.com>
发送时间: 2013年12月23日 15:38
收件人: 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);


No, I mean you use set in function getXXX, it's very weird. @minggo<https://github.com/minggo> @dumganhar<https://github.com/dumganhar> What's your opinion?

—
Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/4576/files#r8523243>.