Crates.io | geo-nd |
lib.rs | geo-nd |
version | 0.5.2 |
source | src |
created_at | 2021-06-22 10:51:34.931898 |
updated_at | 2024-08-04 07:58:39.526888 |
description | Traits and types particularly for 2D and 3D geometry with implementations for [float] and optionally SIMD |
homepage | https://github.com/atthecodeface/geo-nd-rs |
repository | https://github.com/atthecodeface/geo-nd-rs |
max_upload_size | |
id | 413349 |
size | 166,376 |
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 2023) to ensure high performance OpenGL and Vulkan operation while maintaining simplicity of operation for other applications.
Add this to your Cargo.toml
:
[dependencies]
geo-nd = "0.1.2"
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"]
Release notes are available in RELEASES.md.
Licensed under either of
at your option.
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.