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.
Documentation DOMQuad by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
new(rect:DOMRectReadOnly)
new(?p1:DOMPointInit, ?p2:DOMPointInit, ?p3:DOMPointInit, ?p4:DOMPointInit)
Throws:
null | DOMError |
|---|