{"id":15714142,"url":"https://github.com/forsaken1/collider.cr","last_synced_at":"2025-03-30T19:25:30.458Z","repository":{"id":43623611,"uuid":"71653248","full_name":"forsaken1/collider.cr","owner":"forsaken1","description":"Library with implementation of Separating Axis Theorem for collisions calculations","archived":false,"fork":false,"pushed_at":"2017-12-25T18:29:09.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T21:59:00.348Z","etag":null,"topics":["2d","geometry","library"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forsaken1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-22T17:03:12.000Z","updated_at":"2017-04-24T08:50:06.000Z","dependencies_parsed_at":"2022-09-12T06:51:17.516Z","dependency_job_id":null,"html_url":"https://github.com/forsaken1/collider.cr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fcollider.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fcollider.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fcollider.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fcollider.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forsaken1","download_url":"https://codeload.github.com/forsaken1/collider.cr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367383,"owners_count":20765877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","geometry","library"],"created_at":"2024-10-03T21:34:52.317Z","updated_at":"2025-03-30T19:25:30.438Z","avatar_url":"https://github.com/forsaken1.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collider\n\n# Code status\n\n[![Build Status](https://travis-ci.org/forsaken1/collider.cr.svg?branch=master)](https://github.com/forsaken1/collider.cr)\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  collider:\n    github: forsaken1/collider.cr\n```\n\n\n## Usage\n\n```crystal\nrequire \"collider\"\n\n...\n\n# check rectangles collisions (for two rectangles)\n# three parameters:\n#   angle of reference system from base reference system of first rectangle (radians, Float64), \n#   angle of reference system from base reference system of second rectangle (radians, Float64), \n#   rectangle coordinates in format: [x1, y1, x2, y2, ..., x8, y8] : Array(Float64)\nCollider.separating_axis_theorem_for_rectangles 0.to_rad, 50.to_rad,\n  Collider.rectangle_points(fx, fy, fw) +\n  Collider.rectangle_points_rotate(50.to_rad, Collider.rectangle_points(ox, oy, ow))\n\n```\n\n\n## Contributing\n\n1. Fork it ( https://github.com/forsaken1/collider.cr/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [forsaken1](https://github.com/forsaken1) forsaken1 - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Fcollider.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforsaken1%2Fcollider.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Fcollider.cr/lists"}