示例#1
0
文件: Node.cs 项目: liwq-net/liwq718
        /// <summary>
        /// returns a "local" axis aligned bounding box of the node in pixels.
        /// The returned box is relative only to its parent.
        /// The returned box is in Points.
        /// @since v0.99.5
        /// </summary>
        public CCRect boundingBoxInPixels()
        {
            CCRect rect = new CCRect(0, 0, this._contentSizeInPixels.Width, this._contentSizeInPixels.Height);

            return(CCAffineTransform.CCRectApplyAffineTransform(rect, nodeToParentTransform()));
        }
示例#2
0
        public CCRect boundingBoxInPixels()
        {
            CCRect rect = new CCRect(0f, 0f, this.m_tContentSizeInPixels.width, this.m_tContentSizeInPixels.height);

            return(CCAffineTransform.CCRectApplyAffineTransform(rect, this.nodeToParentTransform()));
        }