mySVGSVGElement.createSVGPoint() in SVG 1.1

Creates and returns a new SVGPoint object.

Return Type
SVGPoint

Description

This method of the root SVG element is the way to create a new SVGPoint object. The returned point has its x and y properties set to 0. The following JS sample code assumes a reference to the SVGSVGElement named svgRoot:
var pt = svgRoot.createSVGPoint();
pt.x=evt.clientX;
pt.y=evt.clientY;
var pt2 = pt.matrixTransform(mySVGMatrix);