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.

Documentation DOMPoint 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

Inherited Variables

Defined by DOMPointReadOnly

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.

Inherited Methods

Defined by DOMPointReadOnly

toJSON():Dynamic

Returns a JSON representation of the DOMPointReadOnly object.