no-traits rewrite

This commit is contained in:
Quaternions 2024-09-06 13:25:26 -07:00
parent bd6b7ff217
commit dc79b4011d
3 changed files with 13 additions and 28 deletions

36
Cargo.lock generated
View File

@ -4,9 +4,9 @@ version = 3
[[package]]
name = "arrayvec"
version = "0.7.4"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
[[package]]
name = "bitflags"
@ -20,31 +20,21 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e31ea183f6ee62ac8b8a8cf7feddd766317adfb13ff469de57ce033efd6a790"
[[package]]
name = "deferred_division"
version = "0.1.0"
dependencies = [
"fixed_wide_traits",
]
[[package]]
name = "fixed_wide"
version = "0.1.0"
dependencies = [
"arrayvec",
"bnum",
"fixed_wide_traits",
"typenum",
"paste",
]
[[package]]
name = "fixed_wide_traits"
version = "0.1.0"
[[package]]
name = "fixed_wide_vectors"
version = "0.1.0"
dependencies = [
"fixed_wide_traits",
"fixed_wide",
"paste",
]
[[package]]
@ -64,6 +54,12 @@ dependencies = [
"syn",
]
[[package]]
name = "paste"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
[[package]]
name = "proc-macro2"
version = "1.0.86"
@ -88,9 +84,7 @@ version = "0.4.1"
dependencies = [
"arrayvec",
"bitflags",
"deferred_division",
"fixed_wide",
"fixed_wide_traits",
"fixed_wide_vectors",
"glam",
"id",
@ -107,12 +101,6 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "typenum"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "unicode-ident"
version = "1.0.12"

View File

@ -12,9 +12,7 @@ authors = ["Rhys Lloyd <krakow20@gmail.com>"]
[dependencies]
arrayvec = "0.7.4"
bitflags = "2.6.0"
deferred_division = { path = "../fixed_wide_vectors/deferred_division" }
fixed_wide = { path = "../fixed_wide_vectors/fixed_wide" }#, features = ["fixed_wide_traits", "cordic"]
fixed_wide_traits = { path = "../fixed_wide_vectors/fixed_wide_traits" }
fixed_wide = { path = "../fixed_wide_vectors/fixed_wide" }
fixed_wide_vectors = { path = "../fixed_wide_vectors/fixed_wide_vectors" }
glam = "0.28.0"
id = { version = "0.1.0", registry = "strafesnet" }

View File

@ -431,7 +431,6 @@ pub type Planar64=fixed_wide::types::I32F32;
pub type Planar64Vec3=fixed_wide_vectors::Vector3<Planar64>;
pub type Planar64Mat3=fixed_wide_vectors::Matrix3<Planar64Vec3>;
pub type Planar64Affine3=fixed_wide_vectors::Matrix4<Planar64Vec3>;
pub use fixed_wide_traits::wide::{WideMul,WideDot,WideCross};
#[test]
fn test_sqrt(){