Added point transformation function

Signed-off-by: Andoni Aguirrezabal <aaguirrezabal@live.com>