DOMPoint

open class DOMPoint(    var x: Double = definedExternally,     var y: Double = definedExternally,     var z: Double = definedExternally,     var w: Double = definedExternally) : DOMPointReadOnly, Serializable(source)

A DOMPoint object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.

MDN Reference

Constructors

Link copied to clipboard
constructor(x: Double = definedExternally, y: Double = definedExternally, z: Double = definedExternally, w: Double = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var w: Double

The DOMPoint interface's w property holds the point's perspective value, w, for a point in space.

Link copied to clipboard
open override var x: Double

The DOMPoint interface's x property holds the horizontal coordinate, x, for a point in space.

Link copied to clipboard
open override var y: Double

The DOMPoint interface's y property holds the vertical coordinate, y, for a point in space.

Link copied to clipboard
open override var z: Double

The DOMPoint interface's z property specifies the depth coordinate of a point in space.

Functions

Link copied to clipboard
fun matrixTransform(matrix: DOMMatrixReadOnly = definedExternally): DOMPoint

The matrixTransform() method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new DOMPointReadOnly object.

Link copied to clipboard
fun toJSON(): JsAny

The DOMPointReadOnly method toJSON() returns an object giving the ``js-nolint toJSON() `` None.