Ejemplo n.º 1
0
        /// <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()));
        }
Ejemplo n.º 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()));
        }