{{APIRef("DOM")}}
A DOMPoint
represents a 2D or 3D point in a coordinate system.
It inherits from its parent, {{domxref("DOMPointReadOnly")}}.
Constructor
- {{domxref("DOMPoint.DOMPoint","DOMPoint()")}}
- Creates a new
DOMPoint
object.
Methods
DOMPoint
inherits methods from its parent, {{domxref("DOMPointReadOnly")}}.
- {{domxref("DOMPointReadOnly.fromPoint")}}
- Translates the position/perspective of a
DOMPoint
to a new position (doesn't appear to be supported anywhere yet.)
Properties
DOMPoint
inherits properties from its parent, {{domxref("DOMPointReadOnly")}}.
- {{domxref("DOMPointReadOnly.x")}}
- The x coordinate of the
DOMPoint
. - {{domxref("DOMPointReadOnly.y")}}
- The y coordinate of the
DOMPoint
. - {{domxref("DOMPointReadOnly.z")}}
- The z coordinate of the
DOMPoint
. - {{domxref("DOMPointReadOnly.w")}}
- The perspective value of the
DOMPoint
.
Examples
TBD
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Geometry Interfaces', '#DOMPoint', 'DOMPoint')}} | {{Spec2('Geometry Interfaces')}} | Latest spec version is an ED. |
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatNo}} |
{{CompatVersionUnknown}} |
{{ CompatNo }} |
{{ CompatNo }} |
{{ CompatNo }} |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | {{ CompatNo }} | {{CompatVersionUnknown}} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatNo }} |
See also
- {{domxref("DOMRect")}}