Add 2D transform function to Node.