geometry_1 library Null safety
Geometry Interfaces Module Level 1
The interface represents 4×4 matrices, suitable for 2D and 3D
operations including rotation and translation. It is a mutable
version of the DOMMatrixReadOnly interface.
WebKitCSSMatrixis an alias to . This interface should be available inside web workers, though some implementations don't allow it yet.
- The interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. The DOMMatrix interface — which is based upon —adds mutability, allowing you to alter the matrix after creating it. This interface should be available inside web workers, though some implementations doesn't allow it yet.
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
In general, a positive
xcomponent represents a position to the right of the origin, a positive
ycomponent is downward from the origin, and a positive
zcomponent extends outward from the screen (in other words, toward the user).
- The interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system. Note: This feature is available in Web Workers
Experimental: This is an experimental technologyCheck the
Browser compatibility table carefully before using this in
A is a collection of four DOMPoints defining the corners of an
arbitrary quadrilateral. Returning s lets
getBoxQuads()return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy
boundsattribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.
A describes the size and position of a rectangle.
The type of box represented by the is specified by the method or
property that returned it. For example,
VREyeParameters.renderRectfrom the WebVR API specifies the viewport of a canvas into which visuals for one eye of a head mounted display should be rendered. It inherits from its parent, DOMRectReadOnly.
- The interface specifies the standard properties used by DOMRect to define a rectangle whose properties are immutable.