SVGPoint class

SVGPoint class

Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x, y) coordinate pair. When used in matrix operations, an SVGPoint is treated as a vector of the form: [x] [y] [1] If an SVGRect object is designated as read only, then attempting to assign to one of its attributes will result in an exception being thrown.

Inheritance: SVGPointSVGValueTypeDOMObject

The SVGPoint type exposes the following members:

Properties

PropertyDescription
xThe X coordinate.
yThe Y coordinate.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.
matrix_transformApplies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object:
newpoint = matrix* thispoint

See Also