DOMQuad: p4 property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}}
The **DOMQuad interface's p4** property holds the {{domxref("DOMPoint")}} object that represents one of the four corners of the DOMQuad. When created from {{domxref("DOMQuad.fromRect_static", "DOMQuad.fromRect()")}}, it is the point (x, y + height).
Value
The {{domxref("DOMPoint")}} object includes the following double-precision floating-point values:
- {{domxref("DOMPoint.x")}}: The horizontal coordinate.
- {{domxref("DOMPoint.y")}}: The vertical coordinate.
- {{domxref("DOMPoint.z")}}: The depth coordinate.
- {{domxref("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 {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}).
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- The other
DOMPointproperties: {{domxref("DOMQuad.p1", "p1")}},
{{domxref("DOMQuad.p2", "p2")}}, and {{domxref("DOMQuad.p3", "p3")}}.