fromPoint

fun fromPoint(other: DOMPointReadOnly = definedExternally): DOMPoint(source)

The fromPoint() static method of the DOMPoint interface creates and returns a new mutable DOMPoint object given a source point.

MDN Reference