A JavaScript library for performing 2D geometric calculations on points, lines, and polygons.
Geometric.js is a JavaScript library for performing 2D geometric calculations on points, lines, and polygons. It provides functions for transformations, measurements, and relationship detection, solving the need for manual geometry math in visualization, gaming, or computational applications. The library uses simple array representations for primitives, making it easy to integrate into existing JavaScript projects.
JavaScript developers working on data visualization, computer graphics, game development, or computational geometry projects that require precise 2D geometric operations.
Developers choose Geometric.js for its focused, dependency-free approach to 2D geometry, offering a comprehensive set of well-documented functions without the overhead of larger math or graphics libraries. Its simple API and clear examples make it accessible for both learning and production use.
A JavaScript library for doing geometry.
Represents geometric primitives as simple arrays (e.g., [x,y] for points), making it easy to learn and integrate, as emphasized in the README's API structure.
Offers a wide range of functions for transformations (rotate, scale), measurements (area, length), and relationships (intersections, containment), covering most common 2D geometry tasks.
The library is self-contained and lightweight, with no dependencies, aligning with its philosophy of simplicity and practicality for easy deployment.
Each function includes source links and Observable notebook examples, providing clear, practical guidance that reduces implementation time.
Lacks support for 3D geometry operations, limiting its utility in applications requiring spatial calculations beyond the plane, as admitted by its narrow scope.
Relies on plain arrays without object-oriented or optimized data structures, which can lead to performance issues or cumbersome code for complex manipulations.
Does not include operations for curves, circles, or other non-polygonal shapes, focusing only on points, lines, and polygons, which restricts more sophisticated geometric work.
A modular geospatial engine written in JavaScript and TypeScript
An extension of GeoJSON that encodes topology! 🌐
Zero dependency library to provide some basic geo functions
RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.