Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGPoint

Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x, y) coordinate pair.

Properties
float
x
The x coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
float
y
The y coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Operations
SVGPoint
matrixTransform(SVGMatrix matrix)
Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object: newpoint = matrix * thispoint ParametersSVGMatrix matrix The matrix which is to be applied to this SVGPoint object. Returns A new SVGPoint object.
Referenced by
SVGPathElementgetPointAtLength(...)
SVGPointListreplaceItem(...)
SVGSVGElementcurrentTranslate
SVGTextContentElementgetStartPositionOfChar(...)
SVGZoomEventpreviousTranslate