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