https://github.com/siccity/geometry2d
Unity3D: A set of helper classes for 2D geometric calculations.
https://github.com/siccity/geometry2d
2d area geometry helper helpers line2d polygon triangulation trigonometry
Last synced: 7 months ago
JSON representation
Unity3D: A set of helper classes for 2D geometric calculations.
- Host: GitHub
- URL: https://github.com/siccity/geometry2d
- Owner: Siccity
- License: mit
- Created: 2017-07-05T18:19:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T08:18:52.000Z (almost 8 years ago)
- Last Synced: 2025-02-28T16:11:20.652Z (8 months ago)
- Topics: 2d, area, geometry, helper, helpers, line2d, polygon, triangulation, trigonometry
- Language: C#
- Homepage:
- Size: 36.1 KB
- Stars: 80
- Watchers: 9
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
### Geometry2D
A set of 2D Geometric helper components and structs for Unity3D.
All structs are immutable.
Useful for many things including calculating intersections, projections, distances and lerping.**Structs**
* *Line2D* - A line between point *a* and point *b*.
* *Triangle2D* - A 3-gon defined by point *a*, *b* and *c*. Can be converted into an array of *Line2D*.
* *Polygon2D* - An n-gon defined by an array of points. Can be converted into an array of *Triangle2D* or *Line2D*.
* *Bounds2D* - A simple axis-alligned bounding box for fast collision checks.**Components**
* *Area2D* - Lets you assign and edit a polygon in 3D-space for various purposes.**Extensions**
* *Geometry2D* - Contains extension methods for Vector2.