void Node::getPosition(float* x, float* y) const
{
    *x = _position.x;
    *y = _position.y;
}
this function is in CCNode.

It have good performance,also ,It makes confused to you.
________________________________
发件人: boyu0 <notifications@github.com>
发送时间: 2013年12月23日 14:51
收件人: 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 this is make confused to who review or maintain this code, is there a better way to do this?

—
Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/4576/files#r8523035>.