swamp-wgpu-math

Crates.ioswamp-wgpu-math
lib.rsswamp-wgpu-math
version0.0.10
sourcesrc
created_at2024-11-02 22:25:20.905953
updated_at2024-11-14 16:50:49.255858
descriptionwgpu math types
homepage
repositoryhttps://github.com/swamp/swamp
max_upload_size
id1433210
size7,248
Peter Bjorklund (piot)

documentation

README

swamp-wgpu-math 🐊

Crates.io Documentation

swamp-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 swamp-wgpu-math to your project:

[dependencies]
swamp-wgpu-math = "0.0.10"

License

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

Commit count: 53

cargo fmt