{"id":20717962,"url":"https://github.com/hasenpfote/plucker","last_synced_at":"2025-10-06T07:57:30.184Z","repository":{"id":145438297,"uuid":"339620400","full_name":"Hasenpfote/plucker","owner":"Hasenpfote","description":"Class template for Plucker coordinates of a line.","archived":false,"fork":false,"pushed_at":"2021-02-24T13:05:56.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T19:15:22.107Z","etag":null,"topics":["class-template","cpp11","eigen","header-only","plucker-coordinates"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hasenpfote.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":"2021-02-17T05:25:23.000Z","updated_at":"2024-04-16T05:26:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb0acfeb-3ce1-40b3-90b9-160b6b799e69","html_url":"https://github.com/Hasenpfote/plucker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Hasenpfote/plucker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasenpfote%2Fplucker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasenpfote%2Fplucker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasenpfote%2Fplucker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasenpfote%2Fplucker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hasenpfote","download_url":"https://codeload.github.com/Hasenpfote/plucker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasenpfote%2Fplucker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278577933,"owners_count":26009701,"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-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["class-template","cpp11","eigen","header-only","plucker-coordinates"],"created_at":"2024-11-17T03:11:11.061Z","updated_at":"2025-10-06T07:57:30.148Z","avatar_url":"https://github.com/Hasenpfote.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/Hasenpfote/plucker.svg?branch=master)](https://travis-ci.com/Hasenpfote/plucker)\r\n\r\n# plucker\r\n\r\n---------------------\r\n\r\n## About\r\n\r\n- Class template for Plücker coordinates of a line.\r\n\r\n- Header-only.\r\n\r\n\r\n\r\n## Compatibility\r\n\r\nSupports C++ 11 or higher.\r\n\r\n| Compiler | Version           | Remarks |\r\n| -------- | ----------------- | ------- |\r\n| gcc      | 5.5.0 or higher.  |         |\r\n| clang    | 7.0.0 or higher.  |         |\r\n| msvc     | 16.5.4 or higher. |         |\r\n\r\n**Older versions of compilers might work as well but they are not tested.**\r\n\r\n\r\n\r\n## Dependencies\r\n\r\n- [Eigen](http://eigen.tuxfamily.org)\r\n\r\n  \r\n\r\n## usage\r\n\r\n```c++\r\n#include \u003cplucker/plucker.h\u003e\r\n\r\nusing value_type = double;\r\nusing Vector3 = plucker::Vector3\u003cvalue_type\u003e;\r\nusing Vector4 = plucker::Vector4\u003cvalue_type\u003e;\r\nusing Plucker = plucker::Plucker\u003cvalue_type\u003e;\r\n\r\nbool has_intersection(\r\n    const Plucker\u0026 ray,\r\n    const Vector4\u0026 p1,\r\n    const Vector4\u0026 p2,\r\n    const Vector4\u0026 p3)\r\n{\r\n    if(ray * Plucker(p1, p2) \u003e 0.0)\r\n        return false;\r\n    if(ray * Plucker(p2, p3) \u003e 0.0)\r\n        return false;\r\n    if(ray * Plucker(p3, p1) \u003e 0.0)\r\n        return false;\r\n    return true;\r\n}\r\n\r\nint main()\r\n{\r\n    // Plucker coordinates of a ray.\r\n    const auto from = Vector4(0.0, 1.0, 6.0, 1.0);\r\n    const auto to = Vector4(0.0, 1.0, 4.0, 1.0);\r\n    const auto ray = Plucker(from, to);\r\n\r\n    // Points of a triangle.\r\n    // Here, the front facing of a triangle is counterclockwise.\r\n    const auto p1 = Vector4(3.0, 0.0, -2.0, 1.0);\r\n    const auto p2 = Vector4(0.0, 3.0, -2.0, 1.0);\r\n    const auto p3 = Vector4(-3.0, 0.0, -2.0, 1.0);\r\n\r\n    // Does a ray have an intersection with a triangle?\r\n    const auto res = has_intersection(ray, p1, p2, p3);\r\n\r\n    std::cout \u003c\u003c \"has_intersection: \" \u003c\u003c res \u003c\u003c std::endl;  // true\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\n\r\n\r\n## References\r\n\r\n- [Eigen](http://eigen.tuxfamily.org)\r\n\r\n\r\n\r\n## License\r\n\r\nThis software is released under the CC0 License, see LICENSE.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasenpfote%2Fplucker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasenpfote%2Fplucker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasenpfote%2Fplucker/lists"}