{"id":24461815,"url":"https://github.com/elektronaut/vector2d","last_synced_at":"2025-07-21T12:39:47.306Z","repository":{"id":573362,"uuid":"205328","full_name":"elektronaut/vector2d","owner":"elektronaut","description":"Ruby library (and gem) for handling two-dimensional vectors","archived":false,"fork":false,"pushed_at":"2024-10-29T12:33:07.000Z","size":110,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-15T01:37:18.758Z","etag":null,"topics":["math","ruby","vector"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"btcsuite/btcws","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elektronaut.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-05-19T23:37:56.000Z","updated_at":"2024-10-29T12:33:10.000Z","dependencies_parsed_at":"2025-01-21T04:29:54.535Z","dependency_job_id":"89ab3106-041a-4424-ab74-072298f7adcf","html_url":"https://github.com/elektronaut/vector2d","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/elektronaut/vector2d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elektronaut%2Fvector2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elektronaut%2Fvector2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elektronaut%2Fvector2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elektronaut%2Fvector2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elektronaut","download_url":"https://codeload.github.com/elektronaut/vector2d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elektronaut%2Fvector2d/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266303658,"owners_count":23908373,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["math","ruby","vector"],"created_at":"2025-01-21T04:29:51.124Z","updated_at":"2025-07-21T12:39:47.282Z","avatar_url":"https://github.com/elektronaut.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/gem/v/vector2d.svg?style=flat)](https://rubygems.org/gems/vector2d)\n![Build](https://github.com/elektronaut/vector2d/workflows/Build/badge.svg)\n[![Code Climate](https://codeclimate.com/github/elektronaut/vector2d/badges/gpa.svg)](https://codeclimate.com/github/elektronaut/vector2d)\n[![Code Climate](https://codeclimate.com/github/elektronaut/vector2d/badges/coverage.svg)](https://codeclimate.com/github/elektronaut/vector2d)\n\n# Vector2d\n\nVector2d handles two-dimensional coordinates and vectors.\nVectors are immutable, meaning this is a purely functional library.\n\n## Quick example\n\n```ruby\nrequire 'vector2d'\n\nvector = Vector2d(50, 70)\n\nvector.aspect_ratio        # =\u003e 0.714285714285714\nvector.length              # =\u003e 86.0232526704263\n\nvector * 2                 # =\u003e Vector2d(100,140)\nvector + Vector2d(20, 30)  # =\u003e Vector2d(70,100)\n\nvector.fit(Vector2d(64, 64)) # =\u003e Vector2d(64,45)\n\nVector2d.parse([50, 70])   # =\u003e Vector2d(50,70)\nVector2d.parse(\"50x70\")    # =\u003e Vector2d(50,70)\n```\n\n## Documentation\n\n[API documentation](https://rdoc.info/github/elektronaut/vector2d/main)\n\n## License\n\nCopyright (c) 2006-2019 Inge Jørgensen\n\nVector2d is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felektronaut%2Fvector2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felektronaut%2Fvector2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felektronaut%2Fvector2d/lists"}