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

Documentation DOMPointReadOnly by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Static methods

Constructor

@:value({ w : 1.0, z : 0.0, y : 0.0, x : 0.0 })new(x:Float = 0.0, y:Float = 0.0, z:Float = 0.0, w:Float = 1.0)

Throws:

null

DOMError

Variables

read onlyw:Float

The point's perspective value, w.

read onlyx:Float

The point's horizontal coordinate, x.

read onlyy:Float

The point's vertical coordinate, y.

read onlyz:Float

The point's depth coordinate, z.

Methods

toJSON():Dynamic

Returns a JSON representation of the DOMPointReadOnly object.