Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Note: This feature is available in Web Workers.
The transformPoint method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered.
You can also create a new DOMPoint by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.
A DOMPoint or DOMPointReadOnly instance, or an object containing up to four of the following properties:
xThe x-coordinate of the point in space as a number. The default value is 0.
yThe y-coordinate of the point in space as a number. The default value is 0.
zThe z-coordinate, or depth coordinate, of the point in space as a number. The default value is 0.; positive values are closer to the user and negative values retreat back into the screen.
wThe w perspective value of the point, as a number. The default is 1.
A DOMPoint.
In this example, we apply a 3D point to a 3D matrix:
| Geometry Interfaces Module Level 1 # dom-dommatrixreadonly-transformpoint |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jun 23, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.