| Crates.io | glam-traits |
| lib.rs | glam-traits |
| version | 0.3.1 |
| created_at | 2024-03-02 12:34:22.571868+00 |
| updated_at | 2025-06-12 04:03:43.882721+00 |
| description | Traits for the vectors in glam. |
| homepage | |
| repository | https://github.com/Ababwa/glam-traits |
| max_upload_size | |
| id | 1159673 |
| size | 42,883 |
Traits for the vectors in glam.
There are traits for the following characteristics:
For lengths "any", 2, 3 and 4:
| Any | 2 | 3 | 4 | |
| Any | GVec |
GVec2 |
GVec3 |
GVec4 |
| Signed | SignedVec |
SignedVec2 |
SignedVec3 |
SignedVec4 |
| Float | FloatVec |
FloatVec2 |
FloatVec3 |
FloatVec4 |
| Int | IntVec |
IntVec2 |
IntVec3 |
IntVec4 |
| Signed int | SIntVec |
SIntVec2 |
SIntVec3 |
SIntVec4 |
| Unsigned int | UIntVec |
UIntVec2 |
UIntVec3 |
UIntVec4 |
As well as for concrete types of any length:
I8Vec, U8Vec, I16Vec, U16Vec, I32Vec, U32Vec, I64Vec, U64Vec, USizeVec, F32Vec, F64Vec
BVec is also provided to cover boolean vectors.
Traits are implemented for the appropriate glam types.