Example #1
0
  public void convertToWorldSpace(float x, float y, CGPoint ret) {
    // OneClassPool<CGAffineTransform> pool = PoolHolder.getInstance().getCGAffineTransformPool();

    // = pool.get();
    nodeToWorldTransform(temp);

    CGPointUtil.applyAffineTransform(x, y, temp, ret);

    // pool.free(temp);
  }
Example #2
0
  /**
   * converts a world coordinate to local coordinate
   *
   * @since v0.7.1
   */
  public CGPoint convertToNodeSpace(float x, float y) {
    //        OneClassPool<CGAffineTransform> pool =
    // PoolHolder.getInstance().getCGAffineTransformPool();
    //
    //        CGAffineTransform temp = pool.get();
    worldToNodeTransform(temp);

    CGPoint ret = new CGPoint();
    CGPointUtil.applyAffineTransform(x, y, temp, ret);

    //        pool.free(temp);
    return ret;
  }