{"id":34937059,"url":"https://github.com/niuee/point2point","last_synced_at":"2026-04-20T20:31:46.852Z","repository":{"id":170282556,"uuid":"634407769","full_name":"niuee/point2point","owner":"niuee","description":"A simple vector calculation helper functions collection.","archived":false,"fork":false,"pushed_at":"2024-03-27T09:30:24.000Z","size":222,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-08T22:56:00.091Z","etag":null,"topics":["vector2d"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/niuee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-30T02:39:27.000Z","updated_at":"2024-02-22T15:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c493cd07-7bfe-46d4-96c2-81b38ae8fdb9","html_url":"https://github.com/niuee/point2point","commit_stats":null,"previous_names":["niuee/point2point"],"tags_count":0,"template":false,"template_full_name":"niuee/simple-typescript-boilerplate","purl":"pkg:github/niuee/point2point","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuee%2Fpoint2point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuee%2Fpoint2point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuee%2Fpoint2point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuee%2Fpoint2point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niuee","download_url":"https://codeload.github.com/niuee/point2point/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuee%2Fpoint2point/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32064554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["vector2d"],"created_at":"2025-12-26T18:17:54.670Z","updated_at":"2026-04-20T20:31:46.847Z","avatar_url":"https://github.com/niuee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# point2point\n\n\u003e This is a work in progress do not use it in any kind of production.\n\nThis is a minimal 2D vector calculation library that I wrote for my horse race track maker and parser as part of my horse racing game side project. Detail Documenation will follow in the near future.\n\nThe Overall wrapping class is ```PointCal```. \n\nTo install and try this out\n```bash\nnpm install point2point\n```\n\nimport the ```PointCal``` class\n```javascript\nimport { PointCal } from \"point2point\";\n```\n\nThe calculations that this library is capable of is listed below.\n\n- Vector Addition \n\n```javascript\nPointCal.addVector({x: 0, y: 1}, {x: 1, y: 2})\n// this would return a {x: number, y: number} object\n// which in this case would be {x: 1, y: 3}\n```\n\n- Vector Subtraction\n```javascript\nPointCal.subVector({x: 0, y: 1}, {x: 1, y: 2})\n// this would return a {x: number, y: number} object\n// which in this case would be {x: -1, y: -1}\n```\n- Multiply A Vector With a Scalar Value\n- Unit Vector of a Vector\n- Unit Vector from Point A to Point B\n- Magnitude of a Vector\n- Distance between 2 Points\n- Rotate a Vector $\\theta$ radians (CCW is the positive direction)\n- Dot Product\n- Cross Product\n- Angle from Vector A to Vector B\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniuee%2Fpoint2point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniuee%2Fpoint2point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniuee%2Fpoint2point/lists"}