public CCAffineTransform parentToNodeTransform() { if (this.m_bIsInverseDirty) { this.m_tInverse = CCAffineTransform.CCAffineTransformInvert(this.nodeToParentTransform()); this.m_bIsInverseDirty = false; } return(this.m_tInverse); }
/// <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); }
/// <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())); }