#geometry #gamedev #vector #quaternion #simd

geo-nd

Traits and types particularly for 2D and 3D geometry with implementations for [float] and optionally SIMD

6 releases

0.1.5 Jan 25, 2023
0.1.4 Jan 21, 2023
0.1.3 Sep 6, 2021
0.1.1 Jun 22, 2021

#19 in Rendering

Download history 22/week @ 2022-10-12 4/week @ 2022-10-19 15/week @ 2022-10-26 678/week @ 2022-11-02 242/week @ 2022-11-09 42/week @ 2022-11-16 49/week @ 2022-11-23 28/week @ 2022-11-30 107/week @ 2022-12-07 204/week @ 2022-12-14 163/week @ 2022-12-21 107/week @ 2022-12-28 111/week @ 2023-01-04 66/week @ 2023-01-11 63/week @ 2023-01-18 54/week @ 2023-01-25

334 downloads per month
Used in 2 crates

MIT/Apache

110KB
2K SLoC

geo-nd

A collection of vector, matrix and quaternion types and traits for Rust, particularly aimed at 2D, 3D and OpenGL/Vulkan applications, where the elements use arrays and slices of floats.

The usage model in 3D graphics is through ownership of large arrays of floats by the application, encompassing sets of vertices and matrices, with the library enabling in-place operations on those vertices and matrices.

The library takes advantage of the developiong core_simd crate to provide architecture-specific implementations, without attempting to support architectural SIMD implementations within this crate.

This crate is in alpha; it is used in a small number of applications, and the functionality is mature, but the API may undergo some changes in the near future (through Q3 2021) to ensure high performance OpenGL and Vulkan operation while maintaining simplicity of operation for other applications.

Usage

Add this to your Cargo.toml:

[dependencies]
geo-nd = "0.1.2"

Features

NOTE Until core_simd is part of std or on crates.io the following does not work - the dependency in the geo-nd/Cargo.toml for core_simd must be commented out on crates.io; so a locally modified clone of this crate is required until that point.

This crate can be used with the upcoming core_simd crate by enabling the default simd feature. Use this in Cargo.toml:

[dependencies.geo-nd]
version = "0.1"
features = ["simd"]

Releases

Release notes are available in RELEASES.md.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~155KB