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 DOMPoint
interface DOMPoint {
w: number;
x: number;
y: number;
z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
w: number;
x: number;
y: number;
z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
Hierarchy (View Summary)
- DOMPointReadOnly
- DOMPoint
Properties
w
w: number
The DOMPoint interface's w property holds the point's perspective value, w, for a point in space.
x
x: number
The DOMPoint interface's x property holds the horizontal coordinate, x, for a point in space.
y
y: number
The DOMPoint interface's y property holds the vertical coordinate, y, for a point in space.
z
z: number
The DOMPoint interface's z property specifies the depth coordinate of a 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
A
DOMPointobject represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. DOMPoint is based on DOMPointReadOnly but allows its properties' values to be changed.MDN Reference