For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface DOMPointReadOnly
w: number;
x: number;
y: number;
z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
Hierarchy (View Summary)
- DOMPointReadOnly
Properties
Readonlyw
The DOMPointReadOnly interface's w property holds the point's perspective value, w, for a read-only point in space.
Readonlyx
The DOMPointReadOnly interface's x property holds the horizontal coordinate, x, for a read-only point in space. This property cannot be changed by JavaScript code in this read-only version of the DOMPoint object.
Readonlyy
The DOMPointReadOnl**y** interface's y property holds the vertical coordinate, y, for a read-only point in space.
Readonlyz
The DOMPointReadOnly interface's z property holds the depth coordinate, z, for a read-only point in space.
Methods
matrixTransform
-
The
matrixTransform()method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new DOMPointReadOnly object. Neither the matrix nor the point are altered.Parameters
Optionalmatrix: DOMMatrixInit
Returns DOMPoint
toJSON
-
The DOMPointReadOnly method
toJSON()returns an object giving the JSON form of the point object.Returns any
The
DOMPointReadOnlyinterface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.MDN Reference