Example #1
0
  /**
   * Returns the inverse local affine transform matrix
   *
   * @since v0.7.1
   */
  public CGAffineTransform parentToNodeTransform() {
    if (isInverseDirty_) {
      CGAffineTransformUtil.inverse(nodeToParentTransform(), inverse_);

      isInverseDirty_ = false;
    }

    return inverse_;
  }
Example #2
0
 /** This is analog method, result is written to ret. No garbage. */
 private void worldToNodeTransform(CGAffineTransform ret) {
   nodeToWorldTransform(ret);
   CGAffineTransformUtil.inverse(ret);
 }