-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose names fields for non SIMD vectors and use Deref to emulate nam…
…ed fields for SIMD vectors (#94) * Change `Vec2` and `Vec3` to use named public fields (e.g. `.x`, `.y`) * Implement `Deref` and `DerefMut` for `Vec4`, `Vec3A` and `Quat` to emulate named fields For now the old methods are still there, but they will be deprecated. Fixes #89.
- Loading branch information
1 parent
5f1f2d8
commit 44d3208
Showing
29 changed files
with
3,113 additions
and
1,052 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
cargo test --features "bytemuck mint rand serde debug-glam-assert transform-types" && \ | ||
cargo test --features "scalar-math bytemuck mint rand serde debug-glam-assert transform-types" && \ | ||
cargo test --no-default-features --features "libm scalar-math bytemuck mint rand serde debug-glam-assert transform-types" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,4 +381,4 @@ impl<'a> Product<&'a Self> for Mat2 { | |
{ | ||
iter.fold(IDENTITY, |a, &b| Self::mul(a, b)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.