fromPoint() creates and returns a new mutable
object given a source point.
You can also create a new
DOMPoint object using the
new DOMPoint() constructor.
Although this interface is based on
DOMPointReadOnly, it is not read-only;
the properties within may be changed at will.
An unrestricted floating-point value indicating the
x-coordinate of the point in space. This is generally the horizontal coordinate, with positive values being to the right and negative values to the left. The default value is
An unrestricted floating-point number providing the point's
y-coordinate. This is the vertical coordinate, and barring any transforms applied to the coordinate system, positive values are downward and negative values upward toward the top of the screen. The default is
An unrestricted floating-point value which gives the point's
z-coordinate, which is (assuming no transformations that alter the situation) the depth coordinate; positive values are closer to the user and negative values retreat back into the screen. The default value is
wperspective value, given as an unrestricted floating-point number. The default is
DOMPoint object whose coordinate and perspective values are
identical to those in the source point. The point's properties are mutable and may be
changed at any time.
If you have a
DOMPointReadOnly object, you can easily create a mutable
copy of that point:
var mutablePoint = DOMPoint.fromPoint(readOnlyPoint);
|Geometry Interfaces Module Level 1 |
BCD tables only load in the browser