fromRect

fun fromRect(other: DOMRectReadOnly = definedExternally): DOMQuad(source)

The fromRect() static method of the DOMQuad interface returns a new DOMQuad object based on the provided set of coordinates in the shape of a DOMRect object.

MDN Reference