compute a point from an svg path string