DOMQuad: p1 property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}}

The **DOMQuad interface's p1** 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).

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 DOMPoint properties: {{domxref("DOMQuad.p2", "p2")}},

{{domxref("DOMQuad.p3", "p3")}}, and {{domxref("DOMQuad.p4", "p4")}}.