DOMPoint
interface · experimental
interface DOMPoint extends DOMPointReadOnlyA 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. DOMPoint is based on DOMPointReadOnly but allows its properties' values to be changed.
variable · experimental
var DOMPoint: { … }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. DOMPoint is based on DOMPointReadOnly but allows its properties' values to be changed.
Constructors
constructor
new DOMPoint(x?: number, y?: number, z?: number, w?: number): DOMPointProperties
w
w: numberThe DOMPoint interface's w property holds the point's perspective value, w, for a point in space.
x
x: numberThe DOMPoint interface's x property holds the horizontal coordinate, x, for a point in space.
y
y: numberThe DOMPoint interface's y property holds the vertical coordinate, y, for a point in space.
z
z: numberThe DOMPoint interface's z property specifies the depth coordinate of a point in space.
prototype
prototype: DOMPointMethods
fromPoint
fromPoint(other?: DOMPointInit): DOMPointThe fromPoint() static method of the DOMPoint interface creates and returns a new mutable DOMPoint object given a source point.