예제 #1
0
 public CCAffineTransform parentToNodeTransform()
 {
     if (this.m_bIsInverseDirty)
     {
         this.m_tInverse        = CCAffineTransform.CCAffineTransformInvert(this.nodeToParentTransform());
         this.m_bIsInverseDirty = false;
     }
     return(this.m_tInverse);
 }
예제 #2
0
파일: Node.cs 프로젝트: liwq-net/liwq718
        /// <summary>
        /// Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates.
        /// The matrix is in Pixels.
        /// @since v0.7.1
        /// </summary>
        public CCAffineTransform parentToNodeTransform()
        {
            if (_isInverseDirty)
            {
                _inverse        = CCAffineTransform.CCAffineTransformInvert(this.nodeToParentTransform());
                _isInverseDirty = false;
            }

            return(_inverse);
        }
예제 #3
0
파일: Node.cs 프로젝트: liwq-net/liwq718
 /// <summary>
 /// Returns the inverse world affine transform matrix. The matrix is in Pixels.
 ///@since v0.7.1
 /// </summary>
 public CCAffineTransform worldToNodeTransform()
 {
     return(CCAffineTransform.CCAffineTransformInvert(this.nodeToWorldTransform()));
 }