{"id":17835696,"url":"https://github.com/rob2309/gfx-maths-rs","last_synced_at":"2025-03-19T16:31:05.886Z","repository":{"id":45340006,"uuid":"396938302","full_name":"Rob2309/gfx-maths-rs","owner":"Rob2309","description":"Implementations for the most essential math operations used in graphics programming.","archived":false,"fork":false,"pushed_at":"2023-03-26T12:22:35.000Z","size":42,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-30T01:40:21.291Z","etag":null,"topics":["directx","graphics","matrix","opengl","quaternion","rust","vector","vulkan"],"latest_commit_sha":null,"homepage":"","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/Rob2309.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}},"created_at":"2021-08-16T19:18:18.000Z","updated_at":"2023-12-10T23:16:20.000Z","dependencies_parsed_at":"2023-11-12T16:15:03.844Z","dependency_job_id":"cffb9a3c-5fce-47ce-b15d-6cae844dba8d","html_url":"https://github.com/Rob2309/gfx-maths-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fgfx-maths-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fgfx-maths-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fgfx-maths-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fgfx-maths-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rob2309","download_url":"https://codeload.github.com/Rob2309/gfx-maths-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244463680,"owners_count":20456925,"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":["directx","graphics","matrix","opengl","quaternion","rust","vector","vulkan"],"created_at":"2024-10-27T20:24:26.500Z","updated_at":"2025-03-19T16:31:05.565Z","avatar_url":"https://github.com/Rob2309.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT LICENSE](https://img.shields.io/crates/l/gfx-maths?style=for-the-badge)](https://choosealicense.com/licenses/mit/)\n[![CRATES.IO](https://img.shields.io/crates/v/gfx-maths?style=for-the-badge)](https://crates.io/crates/gfx-maths)\n[![DOCS](https://img.shields.io/docsrs/gfx-maths?style=for-the-badge)](https://docs.rs/gfx-maths)\n[![CI](https://img.shields.io/github/actions/workflow/status/rob2309/gfx-maths-rs/ci.yaml?label=CI\u0026style=for-the-badge)](https://github.com/Rob2309/gfx-maths-rs/actions)\n\n# GFX Maths\nThis crate implements all the basic mathematical structures and operations\nthat are needed for almost any graphical program, namely:\n- [Vec2](src/vec2.rs)\n- [Vec3](src/vec3.rs)\n- [Vec4](src/vec4.rs)\n- [Quaternion](src/quaternion.rs)\n- [Mat4](src/mat4.rs)\n\nThe usual operations are implemented via member functions and operator overloads.\nOperators should handle almost exactly as they would in GLSL, e.g.\n```rust\nuse gfx_maths::*;\n\nlet v = Vec3::new(5.0, 6.0, 7.0);\nlet s = 1.0 / v;\n\nlet t = Mat4::translate(Vec3::new(1.0, 0.0, 0.0)) * s;\n```\n\n# Notation\nVectors are always treated as column vectors, which is why\nonly [Mat4](src/mat4.rs) * [Vec4](src/vec4.rs) is implemented and not [Vec4](src/vec4.rs) * [Mat4](src/mat4.rs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frob2309%2Fgfx-maths-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frob2309%2Fgfx-maths-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frob2309%2Fgfx-maths-rs/lists"}