DOMPoint class
A 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. is based on DOMPointReadOnly but allows its properties' values to be changed. In general, a positive x component represents a position to the right of the origin, a positive y component is downward from the origin, and a positive z component extends outward from the screen (in other words, toward the user).
DOMPointReadOnly
DOMPoint
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- DOMPoint([dynamic x = 0, dynamic y = 0, dynamic z = 0, dynamic w = 1])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPoint(
[DOMPointInit? other]) → DOMPoint -
override