DOMPointReadOnly

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

The DOMPointReadOnly interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.

MDN Reference

Inheritors

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 val w: Double

The DOMPointReadOnly interface's w property holds the point's perspective value, w, for a read-only point in space.

Link copied to clipboard
open val x: Double

The DOMPointReadOnly interface's x property holds the horizontal coordinate, x, for a read-only point in space. This property cannot be changed by JavaScript code in this read-only version of the DOMPoint object.

Link copied to clipboard
open val y: Double

The DOMPointReadOnl**y** interface's y property holds the vertical coordinate, y, for a read-only point in space.

Link copied to clipboard
open val z: Double

The DOMPointReadOnly interface's z property holds the depth coordinate, z, for a read-only 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. Neither the matrix nor the point are altered.

Link copied to clipboard
fun toJSON(): JsAny

The DOMPointReadOnly method toJSON() returns an object giving the JSON form of the point object.