{"id":16147690,"url":"https://github.com/arturoc/na","last_synced_at":"2025-10-23T23:02:20.124Z","repository":{"id":57642877,"uuid":"98987066","full_name":"arturoc/na","owner":"arturoc","description":"nalgebra wrapper to simplify the most common usage for graphics vector math","archived":false,"fork":false,"pushed_at":"2023-07-23T07:36:08.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T22:51:15.303Z","etag":null,"topics":["graphics","math","nalgebra","rust","rust-library","vector-math"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arturoc.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":"2017-08-01T09:59:34.000Z","updated_at":"2024-06-07T19:13:46.000Z","dependencies_parsed_at":"2024-10-27T18:26:37.967Z","dependency_job_id":"faf4c386-a934-4b26-92db-74b6de4807fe","html_url":"https://github.com/arturoc/na","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.36734693877551017","last_synced_commit":"31781282e14bb3cf45dd6f7eb46ef24cf5ce0bf1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturoc%2Fna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturoc%2Fna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturoc%2Fna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturoc%2Fna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arturoc","download_url":"https://codeload.github.com/arturoc/na/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244281364,"owners_count":20427824,"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":["graphics","math","nalgebra","rust","rust-library","vector-math"],"created_at":"2024-10-10T00:26:50.190Z","updated_at":"2025-10-23T23:02:15.086Z","avatar_url":"https://github.com/arturoc.png","language":"Rust","readme":"# na\n\nna is a wrapper around [nalgebra](http://nalgebra.org/) to make it easier and mostly less verbose to work with the most used types in vector math for graphics.\n\nna shortens the most common types Vector*, Point*, Quaternion... to Vec*, Pnt*, Quat... and defaults the generic parameters to f32 so you can write:\n\n```rust\nstruct Pos(Vec3);\n```\n\nIt also inlcudes some other functionalities not yet present in nalgebra:\n\n- Fast versions of multiplication of matrices (including matrices with vectors) that can be used by calling:\n\n```rust\nlet m4: Mat4 = ...;\nlet v4: Vec4 = ...;\nlet v4_2 = m4.fast_mul(\u0026v4);\n```\n\n- Fast versions of inversion for matrices\n\n- GLSL style swizzles:\n\n```rust\nlet xy = v3.xy()\nlet xz = v3.xz()\n....\n```\n\n- Macros to easily create vectors:\n\n```rust\nlet one = vec3!(1.); //sets all components to 1\nlet composed = vec3!(v2, z); // creates a Vector3 from a Vector2 and a float\n...\n```\n\n- Easy to use traits for the most common types:\n\n    - BaseNum (Integers and reals)\n    - BaseInt\n    - BaseFloat\n    - NumVec (Vector of any number type)\n    - FloatVec \n    - NumPnt\n    - FloatPnt\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturoc%2Fna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farturoc%2Fna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturoc%2Fna/lists"}