toineheuvelmans/Metron
Geometry, simplified. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3365
- days_rel: n/a
- days_push: 2616
- n_releases_24m: 0
Adoption not part of the score
1031 stars · 34 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Metron is a Swift library that extends CoreGraphics 2D geometric primitives with a comprehensive collection of geometric functions and types. It enables intuitive geometric calculations like circle containment tests, angle arithmetic, line segment intersections, and polygon operations.
Use cases
- check if a touch point is inside a circle in iOS
- add and normalize angles in radians and degrees
- find intersections between line segments and view frames
- rotate polygon points around an anchor point and build a CGPath
- compute convex hull of a set of points
- calculate distances and relative positions of points in a rect
When to choose
- you do 2D geometry or drawing math in Swift with CoreGraphics
- you want readable, expressive geometric calculations instead of manual trigonometry
- you need convenient extensions for CGPoint, CGVector, CGRect, and polygons
When to avoid
- you need 3D geometry or physics simulation
- your project is not in Swift or does not use CoreGraphics
- you need a library with recent releases or active maintenance
Facets
library · maturity maintenance
math graphics graphics developer-tools cross-platform coregraphics geometry trigonometry 2d-graphics cocoapods swift-package-manager swift ios macos
1 source
- readme: https://github.com/toineheuvelmans/Metron · fetched 2026-08-28 · 91001574d226
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| toineheuvelmans/Metron | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="toineheuvelmans/Metron")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem