Back to Content

DOMQuad: p2 property

files/en-us/web/api/domquad/p2/index.md

latest1.1 KB
Original Source

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

The DOMQuad interface's p2 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 + width, 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.p1", "p1")}}, {{domxref("DOMQuad.p3", "p3")}}, and {{domxref("DOMQuad.p4", "p4")}}.