Skip to content

AndrewKhassapov/shape_collision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

shape_collision project

Shape collision algorithm

A shape collision algorithm for an infinite 2D board of shapes that returns a Dictionary<int, List>() of all intersections between shapes. Each shape has a unique ID as an integer. Entry way point is Program.cs

Return is in the format:

[SHAPE ID] => ([SHAPE ID INTERSECTED WITH], ..., [SHAPE ID INTERSECTED WITH])

Installation

No installation necessary.

Usage

Usage is through the ad hoc World class.

List<Shape>() // Add Shapes to this list.
Dictionary<int, List<int>>() // Return of all intersections.

Contributing

Additional classes, methods, refactoring and optimization always welcome.

License

Free to use.

Releases

No releases published

Packages

No packages published

Languages