limnus-wgpu-math

Crates.iolimnus-wgpu-math
lib.rslimnus-wgpu-math
version0.0.12
sourcesrc
created_at2024-11-24 21:52:02.529752
updated_at2024-12-03 18:53:58.652294
descriptionwgpu math types
homepage
repositoryhttps://github.com/swamp/limnus
max_upload_size
id1459645
size7,256
Peter Bjorklund (piot)

documentation

README

limnus-wgpu-math 🧱

Crates.io Documentation

limnus-wgpu-math is a Rust library that provides easy-to-use types and operations for matrix and vector math, specifically designed for compatibility with wgpu shaders. This library allows you to work seamlessly with transformations, projections, and other essential mathematical operations without the need for conversions, making it ideal for game development and graphical applications.

✨ Features

  • Matrix and Vector Types: Simple, Rust-native types like Matrix4 and Vec4 for common operations in 3D graphics.
  • Orthographic Projection: Easily create orthographic projection matrices for 2D and 3D rendering.
  • Basic Transformations: Includes functions for scaling, translation, and identity matrices.
  • Intuitive Operations: Basic math operations (Add, Mul, Index) implemented for matrices and vectors, making them straightforward to use with wgpu shaders.

📦 Installation

Add limnus-wgpu-math to your project:

[dependencies]
limnus-wgpu-math = "0.0.12"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 19

cargo fmt