A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad below:

DOMQuad - Web APIs | MDN

DOMQuad

Baseline Widely available

Note: This feature is available in Web Workers.

A DOMQuad is a collection of four DOMPoints defining the corners of an arbitrary quadrilateral. Returning DOMQuads lets getBoxQuads() return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy bounds attribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.

Constructor
DOMQuad()

Creates a new DOMQuad object.

Instance properties
DOMQuad.p1 Read only

A DOMPoint representing one corner of the DOMQuad.

DOMQuad.p2 Read only

A DOMPoint representing one corner of the DOMQuad.

DOMQuad.p3 Read only

A DOMPoint representing one corner of the DOMQuad.

DOMQuad.p4 Read only

A DOMPoint representing one corner of the DOMQuad.

Instance methods
DOMQuad.getBounds()

Returns a DOMRect object with the coordinates and dimensions of the DOMQuad object.

DOMQuad.toJSON()

Returns a JSON representation of the DOMQuad object.

Static methods
DOMQuad.fromRect()

Returns a new DOMQuad object based on the passed set of coordinates.

DOMQuad.fromQuad()

Returns a new DOMQuad object or a set of quadrilateral coordinates based on the provided input.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3