Added path.transformPoints function