gfx-maths-rs

所属分类:GPU/显卡
开发工具:Rust
文件大小:13KB
下载次数:0
上传日期:2023-03-26 12:22:35
上 传 者sh-1993
说明:  no intro
(Implementations for the most essential math operations used in graphics programming.)

文件列表:
Cargo.toml (725, 2023-03-26)
LICENSE (1068, 2023-03-26)
src (0, 2023-03-26)
src\lib.rs (369, 2023-03-26)
src\macros.rs (718, 2023-03-26)
src\mat4.rs (12827, 2023-03-26)
src\quaternion.rs (5323, 2023-03-26)
src\vec2.rs (5065, 2023-03-26)
src\vec3.rs (8830, 2023-03-26)
src\vec4.rs (14483, 2023-03-26)

[![MIT LICENSE](https://img.shields.io/crates/l/gfx-maths?style=for-the-badge)](https://choosealicense.com/licenses/mit/) [![CRATES.IO](https://img.shields.io/crates/v/gfx-maths?style=for-the-badge)](https://crates.io/crates/gfx-maths) [![DOCS](https://img.shields.io/docsrs/gfx-maths?style=for-the-badge)](https://docs.rs/gfx-maths) [![CI](https://img.shields.io/github/actions/workflow/status/rob2309/gfx-maths-rs/ci.yaml?label=CI&style=for-the-badge)](https://github.com/Rob2309/gfx-maths-rs/actions) # GFX Maths This crate implements all the basic mathematical structures and operations that are needed for almost any graphical program, namely: - [Vec2](src/vec2.rs) - [Vec3](src/vec3.rs) - [Vec4](src/vec4.rs) - [Quaternion](src/quaternion.rs) - [Mat4](src/mat4.rs) The usual operations are implemented via member functions and operator overloads. Operators should handle almost exactly as they would in GLSL, e.g. ```rust use gfx_maths::*; let v = Vec3::new(5.0, 6.0, 7.0); let s = 1.0 / v; let t = Mat4::translate(Vec3::new(1.0, 0.0, 0.0)) * s; ``` # Notation Vectors are always treated as column vectors, which is why only [Mat4](src/mat4.rs) * [Vec4](src/vec4.rs) is implemented and not [Vec4](src/vec4.rs) * [Mat4](src/mat4.rs).

近期下载者

相关文件


收藏者