DOMQuad: p1 property
Baseline
Widely available
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 DOMQuad interface's p1 property holds the DOMPoint object that represents one of the four corners of the DOMQuad. When created from DOMQuad.fromRect(), it is the point (x, y).
Value
The DOMPoint object includes the following double-precision floating-point values:
DOMPoint.x: The horizontal coordinate.DOMPoint.y: The vertical coordinate.DOMPoint.z: The depth coordinate.DOMPoint.w: The perspective value. The default value is 1.0.
Each of these values is unrestricted, meaning that it is allowed to be infinite or invalid (that is, its value may be NaN or ±Infinity).
Specifications
| Specification |
|---|
| Geometry Interfaces Module Level 1> # dom-domquad-p1> |
Browser compatibility
Loading…