We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Geometry.jsm Redirect 1

Jump to:

The Geometry.jsm JavaScript code module provides routines for performing common geometry operations on points and rectangles. It exports two classes: Point and Rect.

To use these routines, you first need to import the code module into your JavaScript scope:


Once you've imported the module, you can then use the Point and Rect classes.

Note: Although this module is usable from mobile, and is present in Firefox 4, it's currently not used in Firefox 4 and attempting to use it may produce unreliable results there.

See also

Document Tags and Contributors

 Last updated by: teoli,