{"id":15032140,"url":"https://github.com/roeyfuchs/multi_dim_point","last_synced_at":"2026-01-30T13:17:38.047Z","repository":{"id":57641946,"uuid":"366435088","full_name":"roeyfuchs/multi_dim_point","owner":"roeyfuchs","description":"A simple multi-dimensional point","archived":false,"fork":false,"pushed_at":"2024-03-22T13:10:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T08:49:41.859Z","etag":null,"topics":["cli","multidimensional","point","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/multi_dim_point","language":"Rust","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/roeyfuchs.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-05-11T15:43:27.000Z","updated_at":"2024-03-22T13:10:13.000Z","dependencies_parsed_at":"2024-09-24T20:17:29.258Z","dependency_job_id":null,"html_url":"https://github.com/roeyfuchs/multi_dim_point","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"bc683d6606dcdb12051d46f1a1a0e7d6be4e11d7"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roeyfuchs%2Fmulti_dim_point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roeyfuchs%2Fmulti_dim_point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roeyfuchs%2Fmulti_dim_point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roeyfuchs%2Fmulti_dim_point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roeyfuchs","download_url":"https://codeload.github.com/roeyfuchs/multi_dim_point/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roeyfuchs%2Fmulti_dim_point/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159655,"owners_count":22814492,"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":["cli","multidimensional","point","rust"],"created_at":"2024-09-24T20:17:27.314Z","updated_at":"2026-01-30T13:17:37.652Z","avatar_url":"https://github.com/roeyfuchs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust](https://github.com/RoeyFuchs/multi_dim_point/actions/workflows/rust.yml/badge.svg)](https://github.com/RoeyFuchs/multi_dim_point/actions/workflows/rust.yml)\n# Multi-Dimensional Point \nA simple multi-dimensional point structer, base on a vector.\n\n## Examples\n```\nuse multi_dim_point::Point;\nlet p1: Point\u003ci32\u003e = Point::new(3); // create a 3-dim point, with default  values (i32 default = 0).\n```\n\n```\nuse multi_dim_point::Point;\nlet p1: Point\u003ci32\u003e = Point::new_from_vec(\u0026vec![1,2,3]); // create a 3-dim point with values from a vector.\np1.get_value(1) // return a reference to the value in the first dimension.\np1.get_size() // return how many dimensions the point has.\np1.get_vector() // return a reference to the vector that represents the point.\n\nlet p2: Point\u003ci32\u003e = Point::new_from_vec(\u0026vec![4,5,6]); \nlet p3: Point\u003ci32\u003e = \u0026p1+\u0026p2; // create a new point, adding values in the same dimension (the new point will be 5,7,9).\nlet p4: Point\u003ci32\u003e = \u0026p3-\u0026p2;\n\nlet p5: Point\u003ci32\u003e = \u0026p4 * \u00265 // multiply each value in the point.\nlet p6: Point\u003ci32\u003e = \u0026p5 / \u00265;\n\np1 == p2; // return false \np1.close(\u0026p2, 10) // return true\n\n```\n\n```\nuse multi_dim_point::Point;\nfn add_f(num1: \u0026i32, num2: \u0026i32) -\u003e i32 {\n\tnum1 + num2\n}\nlet p1: Point\u003ci32\u003e = Point::new_from_vec(\u0026vec![2, 8, 64, 256, 0]);\nlet p2: Point\u003ci32\u003e = Point::new_from_vec(\u0026vec![2, 8, 14, 6, 0]);\n\np1.apply_func(\u0026p2, \u0026add_f); // return a vector ([4, 16, 78, 262, 0])\n```\n\nSee more examples in the documentation.\n\n## License\nThis code uses crate that under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froeyfuchs%2Fmulti_dim_point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froeyfuchs%2Fmulti_dim_point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froeyfuchs%2Fmulti_dim_point/lists"}